1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
gavmur [86]
2 years ago
7

S.B. manages the website for the student union at Bridger College in Bozeman, Montana. The student union provides daily activiti

es for the students on campus. As website manager, part of S.B.'s job is to keep the site up to date on the latest activities sponsored by the union. At the beginning of each week, he revises a set of seven web pages detailing the events for each day in the upcoming week. S.B. would like the website to display the current day's schedule within an aside element. To do this, the page must determine the day of the week and then load the appropriate HTML code into the element. He would also like the Today at the Union page to display the current day and date.Complete the following:Use your editor to open the bc_union_txt.html and bc_today_txt.js files from XX folder. Enter your name and the date in the comment section and save them as bc_union.html and bc_today.js. DONEGo to the bc_union.html file in your editor. Directly above the closing tag, insert a script element that links the page to the bc_today.js file. Defer the loading of the script until after the rest of the page is loaded by the browser. Study the contents of the file and save your changes. DONEGo to the bc_today.js file in your editor. At the top of the file, insert a statement indicating that the code will be handled by the browser assuming strict usage. Note that within the file is the getEvent() function, which returns the HTML code for the daily events at the union given a day number ranging from 0 (Sunday) to 6 (Saturday). "use strict";Declare the thisDate variable containing the Date object for the date October 12, 2018. var thisDate = new Date("October 12, 2018");Declare the dateString variable containing the text of the thisDate variable using local conventions. var dateStr = thisDate.toLocaleDateString();Declare the dateHTML variable containing the following text string date where date is the value of the dateString variable. var dateHTML = "" + dateStr + "";Create the thisDay variable containing the day of the week number from the thisDate variable (Hint: use the getDay() method). - confused here, have: var thisDate = thisDate.getDay(); correct?Using the thisDay variable as the parameter value, call the getEvent() function to get the HTML code of that day's events and store that value in a variable named eventHTML. - lost here...Applying the insertAdjacentHTML() method to the page element with the ID unionToday, insert the value of the dateHTML plus the eventHTML variables before the end of the element contents. - again, lost here too. Found this on another site... document.querySelector('#unionToday').insertAdjacentHTML('beforeend',dateHTML +' '+ eventHTML); -- Where do I put it?Document your code with descriptive comments."use strict"; /* #4 pg680 *//* New Perspectives on HTML5 and CSS3, 7th Edition Tutorial 9 Case Problem 2 */ This script uses the getEvent() function to return the HTML code containin the daily events at the Bridger College student union. *//*Display the Current Date*/var thisDate = new Date("October 12, 2018"); var dateStr = thisDate.toLocaleDateString(); /* Display the Date Using Local Conventions as a Header*/var dateHTML = "" + dateStr + ""; /* Display the Day of the Week Number*/var thisDate = thisDate.getDay(); // #8 Correct???/* Display the Event Listings */function getEvent(day) { var eventHTML = day[thisDay]; /* is adding this correct?? = day[thisDay]; part of #9 ??? */ switch (day) { case 0: // Sunday Events eventHTML = " \ Highlights from the Bridger Art Collection \ An exhibition from over 60 items in the BC permanent collection. \ Location: Room A414 \ Time: 12 am – 4 pm \ Cost: free \ \ Bridger Starlight Cinema \ Recent, diverse, and provocative films straight from the art house. 35mm. \ Location: Fredric Whyte Play Circle \ Time: 7 pm – 10 pm \ Cost: $3.75 MWU students, Union members, Union staff. $4.25 all others \ \ "; break; case 1: // Monday Events eventHTML = " \ Monday Billiards \ Play in the BC Billiards league for fun and prizes \ Location: Union Game Room \ Time: 7 pm – 11 pm \ Cost: $3.75 for registration \ \ Distinguished Lecture Series \ Cultural critic Elizabeth Kellog speaks on the issues of the day. \ Location: Union Theater \ Time: 7 pm – 9 pm \ Cost: free, seating is limited \ \ "; break;
Computers and Technology
1 answer:
Varvara68 [4.7K]2 years ago
3 0

Answer:

hi

Explanation:

i did not known answers

You might be interested in
Overview In this project you need to design and implement an Emergency Room Patients Healthcare Management System (ERPHMS) that
notka56 [123]

Answer:

Overview In this project you need to design and implement an Emergency Room Patients Healthcare Management System (ERPHMS) that uses stacks, queues, linked lists, and binary search tree ( in addition you can use all what you need from what you have learned in this course ) The system should be able to keep the patient’s records, visits, turns, diagnostics, treatments, observations, Physicians records, etc. It should allow you to

Explanation:

3 0
1 year ago
The list below show test scores for 3rd period on a recent test.
Serhud [2]

Answer:

dshfjkahsdfkjhasdkjfasd

Explanation:

this is what u get for doing this to others foool

6 0
3 years ago
To remove a header or footer from a document you can open the header and footer and manually delete the content true or false
romanna [79]

this is true...........................

6 0
3 years ago
According to Darwin’s theory of evolution, differences between species may be a result of which of the following?
ArbitrLikvidat [17]

Explanation:

Your answer is C natural selection.

8 0
2 years ago
Read 2 more answers
Why should you keep lines of code short?
Nataly [62]

The programmers should keep lines of code short because It makes the code more readable by other programmers.

<h3>Short lines of Code</h3>

Normally, a shorter lines of code are more efficient than spreading the code over several lines

Also, If a programmer have more lines of code, there are more places for bugs to hide and finding them might be more of a hassle.

So, the fewer lines of code can achieve the same results or much better than many lines of code

Hence, the programmers should keep lines of code short because It makes the code more readable by other programmers.

Therefore, the Option A is correct.

Read more about Short lines of Code

<em>brainly.com/question/20475581</em>

3 0
2 years ago
Other questions:
  • A password checking system that disallows user passwords that are proper names or words that are normally included in a dictiona
    15·1 answer
  • Amanda, a project manager, conducted a team meeting consisting of testing and development team. She insisted on clear communicat
    11·1 answer
  • One of the original forms of viruses, is usually stored on some form of removable media. When the removable media is connected t
    9·1 answer
  • Why is it a good idea to view your HTML code in more than one web browser
    13·1 answer
  • The ________________ Act requires Internet sales to be treated in the same way as mail-order sales (e.g., collect sales tax from
    12·1 answer
  • Janelle is at the store and can't decide whether to buy steak for dinner or bring home pizza. To get a quick response from her p
    13·1 answer
  • PLEASE HELP!!!!!!!!!!
    15·2 answers
  • It is used to select specific menu options, drag and drop options and to draw something on screen.
    6·1 answer
  • python. create a program that asks the user to input their first name and their favorite number. Then the program should output
    12·1 answer
  • Which of the following tasks are suitable for creating an algorithm? Choose all that apply
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!