JavaScriptLoopsExample

JavaScriptLoopsExample - Javascript... </h1> </div> <div class="ch_docInfo_container"> <ul class="ch_docInfo_bundle"> <li class="ch_docCourse_info"> <label>SCHOOL</label> <span itemprop="educationalAlignment" itemscope itemtype="http://schema.org/AlignmentObject"> <a itemprop="url" href="/sitemap/schools/22-Rutgers/" title="Rutgers"> <span itemprop="targetName">Rutgers</span> </a> </span> </li> <li class="ch_docCourse_info"> <label>COURSE TITLE</label> <span itemprop="isPartOf" itemscope itemtype="http://schema.org/CreativeWork"> <a itemprop="url" id="sidebar-course-crosslink" rel="nofollow" href="/sitemap/schools/22-Rutgers/courses/239398-COMP-APPS170/" title="COMP APPS 170"> <span itemprop="text">COMP APPS 170</span> </a> </span> </li> <li class="ch_docCourse_info"> <label>TYPE</label> <div itemprop="learningResourceType" class="ch_docType_info">Notes</div> </li> <li class="doc_uploaderDetails_container"> <div class="doc_uploaderInfo_content"> <div class="doc_uploaderProfile_info"> <label>UPLOADED BY</label> <span itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href="/profile/surgec89/"><span itemprop="name">surgec89</span></a> </span> </div> </div> </li> <li> <label>PAGES</label> 2 </li> <li> <section class="ch_taggingEdit_link" data-ng-controller="IncorrectTagCtrl" data-ng-init="init({"school_name":"Rutgers","prof_name":"GayatreeGanu","dept_acro":"COMP APPS","term_string":"Spring","course_id":239398,"canonical_course_id":239398,"school_id":22,"dept_id":3104,"course_num":"170","year":2008,"term":3,"prof_id":83329,"course_name":"Computer Applications for Business","professor":{"prof_pk":83329,"prof_id":83329,"school_id":22,"dept_id":0,"name":"GayatreeGanu"},"resource_url":"https:\/\/www.coursehero.com\/sitemap\/schools\/22-Rutgers\/courses\/239398-COMP-APPS170\/"}, 'JavaScriptLoopsExample', 'notes', {"lesson":"Lesson Plan","notes":"Notes","test_prep":"Test Prep","homework":"Homework Help","essay":"Essay","lab":"Lab Report"}, '')"> <a class="ch_docEditInfo_link" href="/registerForm.php?login_user_type=document&user_action=retag&user_action_id=53729" rel="nofollow" data-ch-mixpanel-conversion-tracking="Edit Document Button"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 42 42" enable-background="new 0 0 42 42"><switch><g><path fill="none" class="isActive" stroke="#0aaae7" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="m12.3 38.3l-11.4 2.6 2.7-11.4 27.5-27.5c1.4-1.4 3.6-1.4 5 0l3.7 3.7c1.4 1.4 1.4 3.6 0 5l-27.5 27.6z"/><path fill="none" class="isActive" stroke="#0aaae7" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="m38.6 12l-8.7-8.8"/><path fill="none" class="isActive" stroke="#0aaae7" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="m36.1 14.5l-8.7-8.8"/><path fill="none" class="isActive" stroke="#0aaae7" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="M 12.8,37.8 4,29.1"/></g></switch></svg> <span class="ch_docEditInfo_tooltip">Click to edit the document details</span> </a> </section> </li> </ul> </div> <main class="bdp_docViewerWide_main"> <div class="bdp_doc-viewer_notification"> <div class="bdp_notification_text"> <p><img src="/assets/img/doc-landing/info-icon.svg" class="bdp_text_highlight" alt="Info icon"/><em>This <strong>preview</strong> shows pages <strong>1–2</strong></strong>. <strong>Sign up</strong> to <span class="bdp-orphan">view the full content.</span></em></p> </div> <a rel="nofollow" class="bdp_header_action roadblock-button" href="/registerForm.php?reg_only=1&get_doc=53729" data-ch-mixpanel-conversion-tracking="Roadblock button">View Full Document <img src="/assets/img/doc-landing/chevron-right.svg" alt="Right Arrow Icon"/></a> </div> <div id="bdp_doc-viewer-image_start"></div> <div id="bdp_image-preview_container" class="bdp_preview_container" data-aspectratio="1.29" data-scrollto="8.2644628099174" data-split="0" data-doc-preview-multiple="2"> <div class="bdp_preview_single html-preview" data-bg-src="//s3.amazonaws.com/splits/84ffe73de0a482c292a1580a762ffdfbc65ff5a5/split-0-page-1-html-bg.png?AWSAccessKeyId=AKIAIAYW2E6VOLDTI35A&Expires=1524618302&Signature=Afxj2g8dsEpvzXTnxDkXTEDzEzU%3D" itemscope itemprop="text"> <div id="html-prev-1" style="position:relative;"> <style type="text/css">.t{position:absolute;-webkit-transform-origin:top left;-moz-transform-origin:top left;-o-transform-origin:top left;-ms-transform-origin:top left;-webkit-transform:scale(0.25);-moz-transform:scale(0.25);-o-transform:scale(0.25);-ms-transform:scale(0.25);z-index:2;position:absolute;white-space:nowrap;overflow:visible;}</style> <script type="text/javascript"> // Ensure that we're not replacing any onload events function addLoadEvent(func) { var oldonload = window.onload; if (typeof window.onload != 'function') { window.onload = func; } else { window.onload = function() { if (oldonload) { oldonload(); } func(); } } } addLoadEvent(function(){load1();}); function adjustWordSpacing(widths) { var i, allLinesDone = false; var isDone = []; var currentSpacing = []; var elements = []; // Initialise arrays for (i = 0; i < widths.length; i++) { elements[i] = document.getElementById(widths[i][0]); if (isIE) widths[i][1] = widths[i][1] * 4; if (elements[i].offsetWidth < widths[i][1]) { currentSpacing[i] = Math.floor((widths[i][1] - elements[i].offsetWidth) / elements[i].innerHTML.match(/\s.| ./g).length);//min if (isIE) currentSpacing[i] = Math.floor(currentSpacing[i] / 4); isDone[i] = false; } else { currentSpacing[i] = 1;//too long isDone[i] = true; } } while (!allLinesDone) { // Add each adjustment to the render queue without forcing a render for (i = 0; i < widths.length; i++) { if (!isDone[i]) { elements[i].style.wordSpacing = currentSpacing[i] + 'px'; } } allLinesDone = true; // If elements still need to be wider, add 1 to the word spacing for (i = 0; i < widths.length; i++) { if (!isDone[i] && currentSpacing[i] < 160) { if (elements[i].offsetWidth >= widths[i][1]) { isDone[i] = true; } else { currentSpacing[i]++; allLinesDone = false; } } } } for (i = 0; i < widths.length; i++) { elements[i].style.wordSpacing = (currentSpacing[i] - 1) + 'px'; } } </script> <style type="text/css">#t1_1{left:59px;top:59px;}#t2_1{left:59px;top:71px;}#t3_1{left:97px;top:83px;}#t4_1{left:59px;top:95px;}#t5_1{left:97px;top:107px;}#t6_1{left:134px;top:120px;}#t7_1{left:134px;top:132px;}#t8_1{left:134px;top:144px;}#t9_1{left:171px;top:156px;}#ta_1{left:171px;top:169px;}#tb_1{left:171px;top:181px;}#tc_1{left:171px;top:193px;}#td_1{left:171px;top:205px;}#te_1{left:171px;top:217px;}#tf_1{left:171px;top:229px;}#tg_1{left:171px;top:242px;}#th_1{left:171px;top:254px;}#ti_1{left:171px;top:278px;}#tj_1{left:171px;top:303px;}#tk_1{left:171px;top:327px;}#tl_1{left:59px;top:339px;}#tm_1{left:171px;top:351px;}#tn_1{left:171px;top:364px;}#to_1{left:208px;top:376px;}#tp_1{left:208px;top:388px;}#tq_1{left:208px;top:400px;}#tr_1{left:208px;top:413px;}#ts_1{left:208px;top:425px;}#tt_1{left:208px;top:437px;}#tu_1{left:208px;top:449px;}#tv_1{left:59px;top:461px;}#tw_1{left:171px;top:474px;}#tx_1{left:171px;top:486px;}#ty_1{left:171px;top:498px;}#tz_1{left:171px;top:510px;}#t10_1{left:208px;top:522px;}#t11_1{left:171px;top:535px;}#t12_1{left:171px;top:547px;}#t13_1{left:171px;top:559px;}#t14_1{left:208px;top:571px;}#t15_1{left:171px;top:583px;}#t16_1{left:171px;top:596px;}#t17_1{left:171px;top:608px;}#t18_1{left:208px;top:620px;}#t19_1{left:59px;top:632px;}#t1a_1{left:171px;top:644px;}#t1b_1{left:171px;top:657px;}#t1c_1{left:171px;top:669px;}#t1d_1{left:171px;top:681px;}#t1e_1{left:171px;top:693px;}#t1f_1{left:171px;top:705px;}#t1g_1{left:171px;top:718px;}#t1h_1{left:171px;top:730px;}#t1i_1{left:171px;top:742px;}#t1j_1{left:59px;top:754px;}.s1_1{FONT-SIZE:41px;FONT-FAMILY:BAAAAA-BitstreamVeraSansMono-R1;color:rgb(0,0,0);}</style> <style type="text/css">@font-face{font-family:BAAAAA-BitstreamVeraSansMono-R1;src:url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAACp4AA0AAAAAO+gAAQABAAAAAA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m4ZBDhZ2E4+ZGzUIlNhVyEIqbqzUrsaWoEhslcXMoFDEuFPrqFvq2cIFwfh7FQh8tcJ8Ivbtnqd4VFAm9Al7VSzivgp7dslTPCnroq4cQ1IFBobv+3D2LblkUaqswg4KUdFWQIJCfpgJeAnHL6bL5LrfKTyP/dLsxo2sXv+oqdNGRXfx0thSrzkKecK7QyYk/vVT5+3OOk7OFjk6n6ih0aB9QHaK0D3BWBbm6cq7QTsjR2uYI2fqvZGeSJWQKGUJbnaHtANJ9AZVeis/rUr4AXhdpOi7Ni0e/9whuPbm7FJeu4HLjOqOd02FTTifOM9o57FblsOE4o51da2e3YtfarTVsKdhO71aRkSpY9SRWISWdNi5aC6106laC8oIejhYs2mEpxqwbMAcwuTDHzZGpM81d/z/H9F838C9Pu38AGpzrbAAA) format("woff");}</style> <div class="html-preview-text"> <span id="t1_1" class="t s1_1 f0"><html> </span> <span id="t2_1" class="t s1_1 f0"><head> </span> <span id="t3_1" class="t s1_1 f0"><title>Javascript Example 3 - Loops</title> </span> <span id="t4_1" class="t s1_1 f0"></head> </span> <span id="t5_1" class="t s1_1 f0"><body> </span> <span id="t6_1" class="t s1_1 f0"><h1>Fake Stock Exchange Market</h1> </span> <span id="t7_1" class="t s1_1 f0"><br> </span> <span id="t8_1" class="t s1_1 f0"><script type="text/javascript"> </span> <span id="t9_1" class="t s1_1 f0">// variable declarations </span> <span id="ta_1" class="t s1_1 f0">var google = 0; </span> <span id="tb_1" class="t s1_1 f0">var dell = 0; </span> <span id="tc_1" class="t s1_1 f0">var confirmation; </span> <span id="td_1" class="t s1_1 f0">var totalgoogle = 0; </span> <span id="te_1" class="t s1_1 f0">var totaldell = 0; </span> <span id="tf_1" class="t s1_1 f0">var totalcost = 0; </span> <span id="tg_1" class="t s1_1 f0">var googleprice = 600; </span> <span id="th_1" class="t s1_1 f0">var dellprice = 50; </span> <span id="ti_1" class="t s1_1 f0">alert("Welcome to the fake stock echange market!"); </span> <span id="tj_1" class="t s1_1 f0">// Add here Loop for as many customers as in the user input </span> <span id="tk_1" class="t s1_1 f0">// Do loop will repeat while user is clicking on cancel (i.e. </span> <span id="tl_1" class="t s1_1 f0">until user clicks OK) </span> <span id="tm_1" class="t s1_1 f0">do </span> <span id="tn_1" class="t s1_1 f0">{ </span> <span id="to_1" class="t s1_1 f0">google=prompt("How many Google shares do you want?"); </span> <span id="tp_1" class="t s1_1 f0">// must enter while loop here, before number conversion </span> <span id="tq_1" class="t s1_1 f0">google = Number(google); </span> <span id="tr_1" class="t s1_1 f0">dell=prompt("How many Dell shares do you want?"); </span> <span id="ts_1" class="t s1_1 f0">// must enter while loop here, before number conversion </span> <span id="tt_1" class="t s1_1 f0">dell = Number(dell); </span> <span id="tu_1" class="t s1_1 f0">confirmation = confirm("You ordered " + google + " Google </span> <span id="tv_1" class="t s1_1 f0">shares, and " + dell + " Dell shares.\nProceed with purchase?"); </span> <span id="tw_1" class="t s1_1 f0">}while(confirmation == false) </span> <span id="tx_1" class="t s1_1 f0">// Discount Calculations </span> <span id="ty_1" class="t s1_1 f0">if ((google + dell) > 150) </span> <span id="tz_1" class="t s1_1 f0">{ </span> <span id="t10_1" class="t s1_1 f0">alert("Customer receives 20% discount!!!!"); </span> <span id="t11_1" class="t s1_1 f0">} </span> <span id="t12_1" class="t s1_1 f0">else if ((google >= 20) || (dell >= 70)) </span> </div> <div id="pg1"><img class="html-preview-bg-img" src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs%3D" alt="Background image of page 1"></div> <script id="ld1" type="text/javascript"> var isIE = false; var f1 = [['t3_1',1083],['t6_1',882],['t8_1',781],['t9_1',604],['ta_1',378],['tb_1',327],['tc_1',428],['td_1',504],['te_1',453],['tf_1',453],['tg_1',554],['th_1',478],['ti_1',1285],['tj_1',1487],['tk_1',1537],['tl_1',529],['to_1',1336],['tp_1',1386],['tq_1',605],['tr_1',1235],['ts_1',1386],['tt_1',504],['tu_1',1436],['tv_1',1613],['tw_1',731],['tx_1',604],['ty_1',655],['t10_1',1109],['t12_1',1008]]; function load1(){ var timeout = 100; if (navigator.userAgent.match(/iPhone|iPad|iPod|Android/i)) timeout = 500; setTimeout(function() {adjustWordSpacing(f1);},timeout); } </script><!--[if lt IE 9]><script type="text/javascript"> isIE = true; var divCount = 56; for (var i = 1; i < divCount; i++) { var div = document.getElementById("t" + i.toString(36) + "_1"); div.style.top = (div.offsetTop * 4) + "px"; div.style.left = (div.offsetLeft * 4) + "px"; div.style.zoom = "25%";} </script><![endif]--> </div> </div> <div class="bdp_docViewer_roadblock"> <p><img src="/assets/img/doc-landing/info-icon.svg" class="bdp_text_highlight" alt="Info icon"/>This <strong><em>preview</em></strong> has intentionally <strong><em>blurred</em></strong> sections. <strong><em>Sign up</em></strong> to view the full version.</p> <a rel="nofollow" href="/registerForm.php?reg_only=1&get_doc=53729" class="bdp_roadblock_action" data-ch-mixpanel-conversion-tracking="Roadblock button">View Full Document<img src="/assets/img/doc-landing/chevron-right.svg" alt="Right Arrow Icon"/></a> </div> <div class="bdp_preview_single html-preview" data-bg-src="" itemscope itemprop="text"> <img src='//s3.amazonaws.com/splits/84ffe73de0a482c292a1580a762ffdfbc65ff5a5/page-2.png?AWSAccessKeyId=AKIAIAYW2E6VOLDTI35A&Expires=1524618302&Signature=J%2F%2BL1UEHW6OA5ocj%2BP5exQScnL4%3D' alt='Image of page 2'> </div> <div class="bdp_preview_end"> This is the end of the preview. <a id="conversion-link-below-preview" rel="nofollow" href="/registerForm.php?reg_only=1&get_doc=53729" data-ch-mixpanel-conversion-tracking="Link after preview">Sign up</a> to access the rest of the document. </div> </div> <div id="bdp_doc-viewer-image_end" class="bdp_doc-viewer_end"></div> <div class="bdp_doc_summary"> <h2>This note was uploaded on 04/02/2008 for the course COMP APPS 170 taught by Professor Gayatreeganu during the Spring '08 term at Rutgers.</h2> </div> <div class="ch_docInfo_container"> <ul class="ch_docInfo_bundle"> <li> <label>TERM</label> Spring '08 </li> <li> <label>PROFESSOR</label> GayatreeGanu </li> <li> <section class="ch_taggingEdit_link" data-ng-controller="IncorrectTagCtrl" data-ng-init="init({"school_name":"Rutgers","prof_name":"GayatreeGanu","dept_acro":"COMP APPS","term_string":"Spring","course_id":239398,"canonical_course_id":239398,"school_id":22,"dept_id":3104,"course_num":"170","year":2008,"term":3,"prof_id":83329,"course_name":"Computer Applications for Business","professor":{"prof_pk":83329,"prof_id":83329,"school_id":22,"dept_id":0,"name":"GayatreeGanu"},"resource_url":"https:\/\/www.coursehero.com\/sitemap\/schools\/22-Rutgers\/courses\/239398-COMP-APPS170\/"}, 'JavaScriptLoopsExample', 'notes', {"lesson":"Lesson Plan","notes":"Notes","test_prep":"Test Prep","homework":"Homework Help","essay":"Essay","lab":"Lab Report"}, '')"> <a class="ch_docEditInfo_link" href="/registerForm.php?login_user_type=document&user_action=retag&user_action_id=53729" rel="nofollow" data-ch-mixpanel-conversion-tracking="Edit Document Button"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 42 42" enable-background="new 0 0 42 42"><switch><g><path fill="none" class="isActive" stroke="#0aaae7" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="m12.3 38.3l-11.4 2.6 2.7-11.4 27.5-27.5c1.4-1.4 3.6-1.4 5 0l3.7 3.7c1.4 1.4 1.4 3.6 0 5l-27.5 27.6z"/><path fill="none" class="isActive" stroke="#0aaae7" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="m38.6 12l-8.7-8.8"/><path fill="none" class="isActive" stroke="#0aaae7" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="m36.1 14.5l-8.7-8.8"/><path fill="none" class="isActive" stroke="#0aaae7" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="M 12.8,37.8 4,29.1"/></g></switch></svg> <span class="ch_docEditInfo_tooltip">Click to edit the document details</span> </a> </section> </li> </ul> </div> <div class="ch_docBottomActions_content"> <div class="ch_docsAppShare_panel"> <ul class="ch_docSocialShare_bundle"> <li><a href="" onclick="shareOnFacebook()"><img src="/assets/img/doc-landing/fb.svg" alt="Facebook Icon"/></a></li> <li><a href="" onclick="shareOnTwitter()"><img src="/assets/img/doc-landing/twitter.svg" alt="Twitter Icon"/></a></li> <li><a href="" onclick="shareThroughEmail()"><img src="/assets/img/doc-landing/email.svg" alt="Email Icon"/></a></li> <li class="doc_shareUrl_container"><a href="#"><img src="/assets/img/doc-landing/url.svg" alt="URL Icon"/> <div class="doc_shareUrl_dialog"> <h5>Share this link with a friend:</h5> <div class="ch_referral_link_panel" ch-clipboard ch-clipboard-target="#js-referral-link" ch-clipboard-indicator="#js-referral-copied"> <fieldset class="ch_referral_link_field"> <label class="ch_referral_link_label"></label> <input id="js-referral-link" type="text" ng-model="referral.link"> <span id="js-referral-copied" class="ch_referral_copied_text">Copied!</span> </fieldset> </div> </div> </a> </li> </ul> </div> <div class="ch_flag_container"> <a class="ch-docLandingFlag_link isActive" href="/registerForm.php?login_user_type=document&user_action=flag&user_action_id=53729" rel="nofollow"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 28.7" enable-background="new 0 0 24 28.7"><switch><g><path fill="none" class="ch_docLandingFlag_icon isActive" stroke="#0aaae7" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="m1.1.9v26.4"/><path fill="none" class="ch_docLandingFlag_icon isActive" stroke="#0aaae7" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="m22.9 4c0 0-9.7 2.6-9.7-.8s-9.7 0-9.7 0v13.8c0 0 9.7-3.4 9.7 0s9.7.8 9.7.8v-13.8z"/></g></switch></svg> <span class="ch_docReport_text">Report</span> </a> </div> <link rel="stylesheet" href="https://www.coursehero.com//sym-assets/css/02c8d8b-b6ca18c.css"> </div> <script> var currentUrl = window.location.href; var shareOnFacebook = function() { FB.init({ appId : window.facebookAppId, status : true, cookie : true, oauth : true, version : 'v2.5' }); FB.ui({ method: 'share', href: currentUrl, }, function(response){}); } var shareOnTwitter = function() { window.open("https://twitter.com/intent/tweet?url=" + encodeURIComponent(currentUrl)); } var shareThroughEmail = function() { window.open("mailto:?to=&subject=" + encodeURIComponent("Check out this awesome document from Course Hero!") + "&body=" + encodeURIComponent(currentUrl)); } // Share URL on logged out/basic pages $(".doc_shareUrl_container").click(function(e) { $("#js-referral-link").val(currentUrl); $("#js-referral-link").select(); document.execCommand("copy"); $(".doc_shareUrl_dialog").toggle(); e.preventDefault(); }); </script> <div class="bdp_docBottomCTA_container"> <a rel="nofollow" href="/registerForm.php?reg_only=1&get_doc=53729" class="bdp_viewDoc_action" data-ch-mixpanel-conversion-tracking="Button below HTML Preview"> View Full Document <img src="/assets/img/doc-landing/chevron-right.svg" alt="Right Arrow Icon"/></a> </div> </main> <aside class="bdp_narrow_sidebar" data-ng-controller="DocLandingSidebarCtrl"> <div class="bdp_popularDocAside_container"> <h4 class="ch_docs-related_section_title">Most Popular Documents for COMP APPS 170</h4> <ul id="bdp_documentsAsideNarrow_bundle" class="bdp_documents_bundle ch_grid-view title-fix"> <li class="bdp_documents_list-item has-six"> <div class="premier-doc-landing_docs-related_list-item"> <a href="/file/53746/JavaScriptExample/" class="" data-ch-mixpanel-doc-thumb-tracking="1"> <div class="ch_product_document"> <div class="ch_product_document_thumbnail"> <span class="ch_product_document_count">2 pages</span> <img class="ch_product_document_thumbnail-image" src="/thumb/cd/a9/cda9293cc74b08c2001d37b7f3f0456fb4cedf38_180.jpg" onerror="image_error_backup(this, '/view_thumbnail.php?filehash=cda9293cc74b08c2001d37b7f3f0456fb4cedf38&size=180')" alt="JavaScriptExample"/> </div> <ul class="ch_product_document_details"> <li class="ch_product_document_title"> JavaScriptExample </li> <li class="ch_product_document_meta-school"> Rutgers </li> <li class="ch_product_document_meta-course-name"> </li> <li class="ch_product_document_meta-course"> COMP APPS 170 - Spring 2008 </li> <li class="ch_product_document_excerpt"> <html> <head> <title>Javascript Example 2</title> </head> <body> <h1>Welcome to the F </li> </ul> <div class="ch_product_document_footer"> <p>JavaScriptExample</p> </div> </div> </a> </div> </li> <li class="bdp_documents_list-item has-six"> <div class="premier-doc-landing_docs-related_list-item"> <a href="/file/53748/WebsiteHTMLexample/" class="" data-ch-mixpanel-doc-thumb-tracking="2"> <div class="ch_product_document"> <div class="ch_product_document_thumbnail"> <span class="ch_product_document_count">2 pages</span> <img class="ch_product_document_thumbnail-image" src="/thumb/a3/bf/a3bf4ec41245010de4c717f987e427dba39f93c7_180.jpg" onerror="image_error_backup(this, '/view_thumbnail.php?filehash=a3bf4ec41245010de4c717f987e427dba39f93c7&size=180')" alt="WebsiteHTMLexample"/> </div> <ul class="ch_product_document_details"> <li class="ch_product_document_title"> WebsiteHTMLexample </li> <li class="ch_product_document_meta-school"> Rutgers </li> <li class="ch_product_document_meta-course-name"> </li> <li class="ch_product_document_meta-course"> COMP APPS 170 - Spring 2008 </li> <li class="ch_product_document_excerpt"> <html> <head> <title>Welcome to New York City Guide Everything you need to know and </li> </ul> <div class="ch_product_document_footer"> <p>WebsiteHTMLexample</p> </div> </div> </a> </div> </li> <li class="bdp_documents_list-item has-six"> <div class="premier-doc-landing_docs-related_list-item"> <a href="/file/54853/Assignment-question-1/" class="" data-ch-mixpanel-doc-thumb-tracking="3"> <div class="ch_product_document"> <div class="ch_product_document_thumbnail"> <span class="ch_product_document_count">1 pages</span> <img class="ch_product_document_thumbnail-image" src="/thumb/22/39/223921912aa29b16bf53b7ead2d3c08f1a3c7087_180.jpg" onerror="image_error_backup(this, '/view_thumbnail.php?filehash=223921912aa29b16bf53b7ead2d3c08f1a3c7087&size=180')" alt="Assignment question 1"/> </div> <ul class="ch_product_document_details"> <li class="ch_product_document_title"> Assignment question 1 </li> <li class="ch_product_document_meta-school"> Rutgers </li> <li class="ch_product_document_meta-course-name"> </li> <li class="ch_product_document_meta-course"> COMP APPS 170 - Spring 2008 </li> <li class="ch_product_document_excerpt"> 1) Write a program to print out the number of days in the month given the name of the </li> </ul> <div class="ch_product_document_footer"> <p>Assignment question 1</p> </div> </div> </a> </div> </li> <li class="bdp_documents_list-item has-six"> <div class="premier-doc-landing_docs-related_list-item"> <a href="/file/54854/Assignment-question-2/" class="" data-ch-mixpanel-doc-thumb-tracking="4"> <div class="ch_product_document"> <div class="ch_product_document_thumbnail"> <span class="ch_product_document_count">1 pages</span> <img class="ch_product_document_thumbnail-image" src="/thumb/db/76/db76c8065334ab6dcaebe8cdd65601ff4b07ee63_180.jpg" onerror="image_error_backup(this, '/view_thumbnail.php?filehash=db76c8065334ab6dcaebe8cdd65601ff4b07ee63&size=180')" alt="Assignment question 2"/> </div> <ul class="ch_product_document_details"> <li class="ch_product_document_title"> Assignment question 2 </li> <li class="ch_product_document_meta-school"> Rutgers </li> <li class="ch_product_document_meta-course-name"> </li> <li class="ch_product_document_meta-course"> COMP APPS 170 - Spring 2008 </li> <li class="ch_product_document_excerpt"> 2. 2) Output the letter grade based on the entered score. The grading scale is as fol </li> </ul> <div class="ch_product_document_footer"> <p>Assignment question 2</p> </div> </div> </a> </div> </li> <li class="bdp_documents_list-item has-six"> <div class="premier-doc-landing_docs-related_list-item"> <a href="/file/61795/comp-apps/" class="" data-ch-mixpanel-doc-thumb-tracking="5"> <div class="ch_product_document"> <div class="ch_product_document_thumbnail"> <span class="ch_product_document_count">2 pages</span> <img class="ch_product_document_thumbnail-image" src="/thumb/62/81/628110d444271da8baefcb91771c039c06eb8d71_180.jpg" onerror="image_error_backup(this, '/view_thumbnail.php?filehash=628110d444271da8baefcb91771c039c06eb8d71&size=180')" alt="comp apps"/> </div> <ul class="ch_product_document_details"> <li class="ch_product_document_title"> comp apps </li> <li class="ch_product_document_meta-school"> Rutgers </li> <li class="ch_product_document_meta-course-name"> </li> <li class="ch_product_document_meta-course"> COMP APPS 170 - Spring 2008 </li> <li class="ch_product_document_excerpt"> HTML Image BG -<bg src="snow.jpg"> Font color-<font color="blue">text Basic link-<a h </li> </ul> <div class="ch_product_document_footer"> <p>comp apps</p> </div> </div> </a> </div> </li> <li class="bdp_documents_list-item has-six"> <div class="premier-doc-landing_docs-related_list-item"> <a href="/file/54855/Assignment-question-3/" class="" data-ch-mixpanel-doc-thumb-tracking="6"> <div class="ch_product_document"> <div class="ch_product_document_thumbnail"> <span class="ch_product_document_count">3 pages</span> <img class="ch_product_document_thumbnail-image" src="/thumb/65/cd/65cd914bc317a9b18d097bc1cbbce052c8897ce1_180.jpg" onerror="image_error_backup(this, '/view_thumbnail.php?filehash=65cd914bc317a9b18d097bc1cbbce052c8897ce1&size=180')" alt="Assignment question 3"/> </div> <ul class="ch_product_document_details"> <li class="ch_product_document_title"> Assignment question 3 </li> <li class="ch_product_document_meta-school"> Rutgers </li> <li class="ch_product_document_meta-course-name"> </li> <li class="ch_product_document_meta-course"> COMP APPS 170 - Spring 2008 </li> <li class="ch_product_document_excerpt"> 3. Find the minimum and maximum of these three numbers. Print the following output in </li> </ul> <div class="ch_product_document_footer"> <p>Assignment question 3</p> </div> </div> </a> </div> </li> </ul> <a rel="nofollow" data-ng-show="showCourseDocsLink" class="bdp-viewMore_cta" id="view-more-related" href="/sitemap/schools/22-Rutgers/courses/239398-COMP-APPS170/">View more</a> </div> <div class="bdp_satisfactionTest_wrapper"> <img src="/assets/img/doc-landing/satisfaction-seal.svg" alt="satisfaction guaranteed seal"> </div> <div class="bdp_valuePropPlaceholder_panel" data-ng-hide="displayPlaceholder === false"></div> <div data-ng-include="'/document_sidebar_marketing/'" onload="hidePlaceholder()"> </div> <!--googleoff: snippet--> <!--googleon: snippet--> <div class="ch_appDownload_bundle"> <h4>Study on the go</h4> <ul> <li class="ch_appIcons_single"><p><span class="ch_app_icons"><i class="fa fa-apple fa-2x"></i></span><a href="https://itunes.apple.com/app/apple-store/id922208952?pt=108036802&ct=doc_landing&mt=8" rel="nofollow" data-ch-mixpanel-conversion-tracking="Download iOS App Button">Download the iOS app</a></p></li> <li class="ch_appIcons_single"><p><span class="ch_app_icons"><i class="fa fa-android fa-2x"></i></span><a href="https://play.google.com/store/apps/details?id=com.coursehero.coursehero&referrer=utm_source%3Dcoursehero%26utm_campaign%3Ddoc_landing" rel="nofollow" data-ch-mixpanel-conversion-tracking="Download Android App Button">Download the Android app</a></p></li> </ul> </div> </aside> </div> <section class="bdp_sectionGray_container"> <div id="bdp-related-2" class="bdp_related_carousel_container has-six"> <h4 class="ch_docs-related_section_title">Other Related Materials</h4> <div class="ch_docs-related_bundle ch_grid-view"> <div class="premier-doc-landing_docs-related_list-item"> <a href="/file/13132944/INTRODUCTION-TO-JAVASCRIPTtxt/" class="ch_product_document" data-ch-mixpanel-doc-thumb-tracking=""> <div class="ch_product_document"> <div class="ch_product_document_thumbnail"> <span class="ch_product_document_count">5 pages</span> <img class="ch_product_document_thumbnail-image" src="/thumb/28/3e/283e3b01499ba8d39dbbf911ec54e1949e3c80d1_180.jpg" onerror="image_error_backup(this, '/view_thumbnail.php?filehash=283e3b01499ba8d39dbbf911ec54e1949e3c80d1&size=180')" alt="INTRODUCTION TO JAVASCRIPT.txt"/> </div> <ul class="ch_product_document_details"> <li class="ch_product_document_title"> INTRODUCTION TO JAVASCRIPT.txt </li> <li class="ch_product_document_meta-school"> Jomo Kenyatta University of Agriculture and Technology </li> <li class="ch_product_document_meta-course-name"> </li> <li class="ch_product_document_meta-course"> IT BIT - Winter 2016 </li> <li class="ch_product_document_excerpt"> .0 FRAMES - IT IS A WINDOW THAT IS USED TO DISPLAY MORE THAN ONE PAGE <FRAMESET> <F </li> </ul> <div class="ch_product_document_footer"> <p>INTRODUCTION TO JAVASCRIPT.txt</p> </div> </div> </a> </div> <div class="premier-doc-landing_docs-related_list-item"> <a href="/file/12430543/cs571-07-javascriptpdf/" class="ch_product_document" data-ch-mixpanel-doc-thumb-tracking=""> <div class="ch_product_document"> <div class="ch_product_document_thumbnail"> <span class="ch_product_document_count">16 pages</span> <img class="ch_product_document_thumbnail-image" src="/thumb/51/41/5141400b1b449db6bcb73541367935e6720f5871_180.jpg" onerror="image_error_backup(this, '/view_thumbnail.php?filehash=5141400b1b449db6bcb73541367935e6720f5871&size=180')" alt="cs571-07-javascript.pdf"/> </div> <ul class="ch_product_document_details"> <li class="ch_product_document_title"> cs571-07-javascript.pdf </li> <li class="ch_product_document_meta-school"> Binghamton University </li> <li class="ch_product_document_meta-course-name"> </li> <li class="ch_product_document_meta-course"> CS 571 - Fall 2014 </li> <li class="ch_product_document_excerpt"> What is JavaScript? JavaScript is a lightweight, interpreted programming language wit </li> </ul> <div class="ch_product_document_footer"> <p>cs571-07-javascript.pdf</p> </div> </div> </a> </div> <div class="premier-doc-landing_docs-related_list-item"> <a href="/file/p2e72pp/writeobj1yearsUntilRetire-years-to-Retire-script-body-Arrays-in-Javascript/" class="ch_product_document" data-ch-mixpanel-doc-thumb-tracking=""> <div class="ch_product_document"> <div class="ch_product_document_thumbnail"> <span class="ch_product_document_count">8 pages</span> <img class="ch_product_document_thumbnail-image" src="/thumb/9a/45/9a45e14161f3805ca468959abefb8d676a2fc492_180.jpg" onerror="image_error_backup(this, '/view_thumbnail.php?filehash=9a45e14161f3805ca468959abefb8d676a2fc492&size=180')" alt="javascript tutorials1.pdf"/> </div> <ul class="ch_product_document_details"> <li class="ch_product_document_title"> writeobj1yearsUntilRetire years to Retire script body Arrays in Javascript </li> <li class="ch_product_document_meta-school"> Southern Cross </li> <li class="ch_product_document_meta-course-name"> </li> <li class="ch_product_document_meta-course"> CSC 10217 - Spring 2016 </li> <li class="ch_product_document_excerpt"> JavaScript Tutorial Notes Different types of variables in Java Script 1. numeric 2. s </li> </ul> <div class="ch_product_document_footer"> <p>javascript tutorials1.pdf</p> </div> </div> </a> </div> <div class="premier-doc-landing_docs-related_list-item"> <a href="/file/p3pi88k/Remember-that-your-output-will-have-the-text-within-a-documentwrite-as-output/" class="ch_product_document" data-ch-mixpanel-doc-thumb-tracking=""> <div class="ch_product_document"> <div class="ch_product_document_thumbnail"> <span class="ch_product_document_count">4 pages</span> <img class="ch_product_document_thumbnail-image" src="/thumb/9d/b3/9db378f869059c9ee2a663c6436bce65b1c52232_180.jpg" onerror="image_error_backup(this, '/view_thumbnail.php?filehash=9db378f869059c9ee2a663c6436bce65b1c52232&size=180')" alt="practiceproblemsSOLN"/> </div> <ul class="ch_product_document_details"> <li class="ch_product_document_title"> Remember that your output will have the text within a documentwrite as output </li> <li class="ch_product_document_meta-school"> Rutgers </li> <li class="ch_product_document_meta-course-name"> </li> <li class="ch_product_document_meta-course"> COMP APPS 170 - Fall 2008 </li> <li class="ch_product_document_excerpt"> Practice Problems for JavaScript Multiple Choice Questions 1. _ are used to group sev </li> </ul> <div class="ch_product_document_footer"> <p>practiceproblemsSOLN</p> </div> </div> </a> </div> <div class="premier-doc-landing_docs-related_list-item"> <a href="/file/p6579616/What-will-it-do-Replace-all-blank-with-code-to-complete-the-script-Sit104/" class="ch_product_document" data-ch-mixpanel-doc-thumb-tracking=""> <div class="ch_product_document"> <div class="ch_product_document_thumbnail"> <span class="ch_product_document_count">30 pages</span> <img class="ch_product_document_thumbnail-image" src="/thumb/be/37/be37595e79a84ffbf9db3bbeda75b471e070a042_180.jpg" onerror="image_error_backup(this, '/view_thumbnail.php?filehash=be37595e79a84ffbf9db3bbeda75b471e070a042&size=180')" alt="JavaScript Exercise Book"/> </div> <ul class="ch_product_document_details"> <li class="ch_product_document_title"> What will it do Replace all blank with code to complete the script Sit104 </li> <li class="ch_product_document_meta-school"> Melbourne Institute of Business & Technology </li> <li class="ch_product_document_meta-course-name"> </li> <li class="ch_product_document_meta-course"> SIT 104 - Fall 2015 </li> <li class="ch_product_document_excerpt"> Exercise Thirty Create two identifiers nav and content. Nav will have the following s </li> </ul> <div class="ch_product_document_footer"> <p>JavaScript Exercise Book</p> </div> </div> </a> </div> <div class="premier-doc-landing_docs-related_list-item"> <a href="/file/p6u7s89/Define-a-variable-using-the-var-statement-var-x-If-undefined-a-variable-will-be/" class="ch_product_document" data-ch-mixpanel-doc-thumb-tracking=""> <div class="ch_product_document"> <div class="ch_product_document_thumbnail"> <span class="ch_product_document_count">108 pages</span> <img class="ch_product_document_thumbnail-image" src="/thumb/3a/51/3a5174f8063676c0d93a0befc286c98bb913803e_180.jpg" onerror="image_error_backup(this, '/view_thumbnail.php?filehash=3a5174f8063676c0d93a0befc286c98bb913803e&size=180')" alt="big (1)"/> </div> <ul class="ch_product_document_details"> <li class="ch_product_document_title"> Define a variable using the var statement var x If undefined a variable will be </li> <li class="ch_product_document_meta-school"> UCSD </li> <li class="ch_product_document_meta-course-name"> </li> <li class="ch_product_document_meta-course"> CSE 134b - Summer 2015 </li> <li class="ch_product_document_excerpt"> CSE 134B Web Client Languages Introduction to JavaScript Lecture # 5 CSE 134B Web Cli </li> </ul> <div class="ch_product_document_footer"> <p>big (1)</p> </div> </div> </a> </div> </div> </div> </section> </div> </div> <div class="bdp_stickyHeader_wrapper"> <div class="bdp_stickyHeader_container stuck"> <div class="bdp_pageNumber_text"> <h3 class="bdp_stickyPageNum"><span class="smallText">Page</span><span class="greenText">1</span> / 2</h3> </div> <div class="bdp_stickyHeader_text"> <div class="bdp_titleSticky_heading">JavaScriptLoopsExample - <html> <head> <title>Javascript...</div> <p><span class="doc_preview_message"><em>This preview shows document pages 1 - 2. Sign up to view the full document.</em></span></p> </div> <a rel="nofollow" href="/registerForm.php?reg_only=1" class="bdp_stickyHeader_action" data-ch-mixpanel-conversion-tracking="Sticky Header Button"> View Full Document <img src="/assets/img/doc-landing/chevron-right.svg" alt="Right Arrow Icon"/></a> </div> </div> <div data-ng-include="'/document_marketing/0/'"> </div> </div> </div> <div id="ch-footer" class="ch-wrapper"> <div class="ch-trust-seals_wrapper"> <div class="ch-trust-seals_container"> <a target="_blank" href="javascript:window.open('https://trustsealinfo.websecurity.norton.com/splash?form_file=fdf/splash.fdf&dn=www.coursehero.com&lang=en', 'SymantecSeal', 'location=yes,status=yes,resizable=yes,scrollbars=yes,width=560,height=500');" rel="nofollow" class="ch-trust-seals_verisign-icon"></a> <span class="ch-trust-seals_bbb-icon"></span> <div id="fb2f890b-c797-4871-8a9b-d0350de5fd5f" class="ch-trust-seals_truste-icon"> <script type="text/javascript" src="//privacy-policy.truste.com/privacy-seal/Course-Hero/asc?rid=fb2f890b-c797-4871-8a9b-d0350de5fd5f"> </script> <a href="//privacy.truste.com/privacy-seal/CourseHero/validation?rid=a50533b3-15e2-472e-a9fc-0fcdc0471ef1" title="TRUSTe online privacy certification" target="_blank"> <img style="border: none" src="//privacy-policy.truste.com/privacy-seal/Course-Hero/seal?rid=a50533b3-15e2-472e-a9fc-0fcdc0471ef1" alt="TRUSTe online privacy certification"/> </a> </div> </div> </div> <div class="ch-footer-links_wrapper"> <ul class="ch-footer-links_container" id="ch-footer-links_container"> <li> <h6>Company</h6> <a href="/about-us/">About Us</a> <a href="/scholarships/">Scholarships</a> <a href="/sitemap/">Sitemap</a> <a href="/standardized-tests/">Standardized Tests</a> </li> <li> <h6>Get Course Hero</h6> <a href="https://itunes.apple.com/app/apple-store/id922208952?pt=108036802&ct=footer&mt=8" target="_blank">iOS</a> <a href="https://play.google.com/store/apps/details?id=com.coursehero.coursehero&referrer=utm_source%3Dcoursehero%26utm_campaign%3Dfooter" target="_blank">Android</a> <a href="/educators/">Educators</a> </li> <li> <h6>Careers</h6> <a href="/our-values/">Our Values</a> <a href="/our-team/">Our Team</a> <a href="/jobs/">Jobs</a> <a href="/business-internship/">Internship</a> </li> <li> <h6>Help</h6> <a href="https://support.coursehero.com/hc/en-us/#/contact-us">Contact Us</a> <a href="https://support.coursehero.com">FAQ</a> <a href="/feedback.php">Feedback</a> </li> <li> <h6>Legal</h6> <a href="/copyright/">Copyright Policy</a> <a href="/honor-code/">Honor Code</a> <a href="/privacy-policy/">Privacy Policy</a> <a href="/terms-of-use/">Terms of Use</a> </li> <li> <h6>Connect with Us</h6> <a href="/blog/">Blog</a> <a href="https://www.facebook.com/coursehero" target="_blank">Facebook</a> <a href="https://twitter.com/CourseHero" target="_blank">Twitter</a> <a href="https://www.linkedin.com/company/course-hero-inc." target="_blank">LinkedIn</a> </li> </ul> <div class="ch-copyright_wrapper"> <div class="ch-copyright_container"> <p class="ch-copyright_info"> Copyright © 2017. Course Hero, Inc. </p> <p class="ch-copyright_fyi">Course Hero is not sponsored or endorsed by any college or university.</p> </div> </div> </div> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-1389869-2']); _gaq.push(['_setCustomVar', 1, 'usertype', "visitor", 2]); _gaq.push(['_setCustomVar', 2, 'conversion', "false", 2]); if (typeof utmx !== 'undefined' && utmx('combination') != undefined) { var l = document.location, s = l.search; s = s + (s.length ? '&' : '?') + 'combination=' + utmx('combination'); _gaq.push(['_trackPageview', l.pathname + s]); } else{ _gaq.push(['_trackPageview']); } (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> <script type="text/javascript"> adroll_adv_id = "RMA4JRK3LBCRFDGPVVO45A"; adroll_pix_id = "4D6DGYEGP5GENH5XDDV55J"; (function () { var oldonload = window.onload; window.onload = function(){ __adroll_loaded=true; var scr = document.createElement("script"); var host = (("https:" == document.location.protocol) ? "https://s.adroll.com" : "http://a.adroll.com"); scr.setAttribute('async', 'true'); scr.type = "text/javascript"; scr.src = host + "/j/roundtrip.js"; document.body.appendChild(scr); if(oldonload){oldonload()}}; }()); </script> <script type='text/javascript'> var _mTrack = _mTrack || []; _mTrack.push(['trackPage']); (function() { var mClientId = '518m4q45325'; var mProto = (('https:' == document.location.protocol) ? 'https://' : 'http://'); var mHost = 'tracker.marinsm.com'; var mt = document.createElement('script'); mt.type = 'text/javascript'; mt.async = true; mt.src = mProto + mHost + '/' + 'tracker/' + 'async/' + mClientId + '.js'; var fscr = document.getElementsByTagName('script')[0]; fscr.parentNode.insertBefore(mt, fscr); })(); </script> <noscript> <img width="1" height="1" src="https://tracker.marinsm.com/tp?act=1&cid=518m4q45325&script=no" alt="tracker img"/> </noscript> <script type="text/javascript"> /* <![CDATA[ */ var google_conversion_id = 1029779469; var google_custom_params = window.google_tag_params; var google_remarketing_only = true; /* ]]> */ </script> <script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js"> </script> <noscript> <div style="display:inline;"> <img height="1" width="1" style="border-style:none; position:absolute;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/1029779469/?value=0&guid=ON&script=0"/> </div> </noscript> </div> <div id="ch_askQuestionTray_wrapper" data-ng-module="qa.askAQuestion"> <div class="ch_askQuestionTray_tab"> <i class="ch_askQTrayTab_icon fa fa-comments"></i> <span>Ask a homework question</span> <small><i class="ch_askQTrayOnline_icon fa fa-fw fa-circle"></i> <span data-num-online-tutors>-</span> tutors are online</small> <span><i class="ch_askQTrayToggle_icon fa fa-chevron-up"></i><i class="ch_askQTrayToggle_icon fa fa-chevron-down"></i></span> </div> <div class="ch_askQuestionTray_container"> <div id="dashboard-ask-question-widget"> <div class="follow-message-wrapper-js" style="display:none;"> <div class="message-box-red error follow-message-wrapper"> <ul class="follow-messages"> </ul> </div> </div> <div id="ask-question-widget-full"> <div data-ask-a-question data-user-id="" data-is-basic-default="1" data-current-user-id=""> </div> </div> </div> </div> </div> <script src="/assets/js/vendor/jquery.waypoint.js"></script> <script type="text/javascript"> var registerWayPoint = function(){ jQuery("#ch-footer").waypoint(function(direction){ if(direction == "up"){ $("#ch_askQuestionTray_wrapper").removeClass("isNotSticky"); } else{ $("#ch_askQuestionTray_wrapper").addClass("isNotSticky"); } }, { offset: "100%" }); }; var initAskQuestionTab = function(){ registerWayPoint(); jQuery("#ch_askQuestionTray_wrapper > .ch_askQuestionTray_tab").on("click", function() { $("#ch_askQuestionTray_wrapper").toggleClass("isOpen"); // Mixpanel Tracking if (typeof tracker !== 'undefined') { var properties = {}; var toggleStatus = $("#ch_askQuestionTray_wrapper").hasClass("isOpen") ? "Open" : "Close"; if (toggleStatus) { properties['Status'] = toggleStatus; } tracker.track('Toggle Sitewide Ask a Question Widget', properties); } }); }; jQuery(document).ready(function(){ initAskQuestionTab(); // dynamic pages need to recalculate viewport window.setInterval(function(){ registerWayPoint(); }, 300); }); </script> <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.9.0/highlight.min.js"></script> <script src="https://www.coursehero.com//sym-assets/js/c76ab9e-3172711.js" type="text/javascript"></script> <script> var appId = 126130834105126; </script> <!--[if IE 9]> <script src="https://www.coursehero.com//sym-assets/js/7f36ca4-579bc8b.js" type="text/javascript"></script> <script> $('input:not([data-ng-model]), textarea:not([data-ng-model])').placeholder(); </script> <![endif]--> <script> (function(d, s, id){ var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) {return;} js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/sdk.js"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); var facebookAppId = 126130834105126; </script> <script type="text/javascript" src="https://www.coursehero.com//sym-assets/js/18200b0-e609b37.js"></script> <script type="text/javascript"> (function(){ //function to check if the return key was pressed on mobile function checkKeyPress(classA){ $(classA).keypress(function(event){ var keycode = (event.keyCode ? event.keyCode : event.which); if(keycode == '13'){ $(classA).css("padding-right","100px"); } }); } //function to check if the return key was pressed on desktop function checkKeyPress_screen(classA, classB){ $(classA).keypress(function(event){ var keycode = (event.keyCode ? event.keyCode : event.which); if(keycode == '13'){ $(classB).hide(); $(classA).css("padding-right","100px"); } }); } function checkKeyPress_screen_nopadding(classA, classB){ $(classA).keypress(function(event){ var keycode = (event.keyCode ? event.keyCode : event.which); if(keycode == '13'){ $(classB).hide(); } }); } //function to check if we have the ng-hide class on the search count on mobile function checkClass(classA){ if($("#search_count").hasClass("ng-hide")){ $(classA).css("padding-right","12px"); checkKeyPress(classA); } else{ $(classA).css("padding-right","100px"); } } //function to check if we have the ng-hide class on the search count on screen function checkClass_screen(classA){ if($("#search_count").hasClass("ng-hide")){ $(classA).css("padding-right","0px"); checkKeyPress(classA); } else{ $(classA).css("padding-right","100px"); } } function checkClass_delay(classA){ if($("#search_count").hasClass("ng-hide")){ $(classA).css("padding-right","12px"); checkKeyPress(classA); } else{ setTimeout(function(){ $(classA).css("padding-right","100px"); }, 300 ); } } //function to check if any change has been made to the input field function checkInputChange(classA){ $(classA).on('input', function(){ if($(this).val() == ""){ $(classA).css("padding-right","12px"); } }); } //function to check if the enter tooltip is shown function checkTooltip(classA){ setTimeout(function(){ if($("#search_locked_tooltip_1").css("display","inline") && ($(".dp_doc-viewer_notification_1").hasClass("isExpanded"))){ $('.search_locked_tooltip_1').show(); $(classA).css("padding-right","100px"); } else if($("#search_locked_tooltip_1").css("display","none")){ checkClass_screen(classA) } }, 300); } //the main function to be called in document ready and also when window is resized function stuffForResizeAndReady(){ if($(window).width() <= 1057){ $('.dp_search_input_1,.dp_search_input_2,.dp_search_input_3').on('focus', function () { checkClass('.dp_search_input_1,.dp_search_input_2, .dp_search_input_3'); checkInputChange('.dp_search_input_1,.dp_search_input_2, .dp_search_input_3'); }); $('.dp_search_input_1,.dp_search_input_2,.dp_search_input_3').on('focusout', function () { checkClass('.dp_search_input_1,.dp_search_input_2, .dp_search_input_3'); $(".dp_search_input_1").css("padding-right","0px"); }); } if($(window).width() >= 1057){ //bucket 1 $('.dp_search_bar_1').on('click', function(e){ $(".bdp_notification_text").css("display","none"); $(".dp_doc-viewer_notification_1").addClass("isExpanded"); $('#dp_search_input_1').focus(); if($(".dp_search_input_1").val() == ""){ checkTooltip(".dp_search_input_1"); checkKeyPress_screen('.dp_search_input_1','.search_locked_tooltip_1'); checkInputChange('.dp_search_input_1'); }else{ $('.search_locked_tooltip_1').hide(); checkClass_delay(".dp_search_input_1"); checkKeyPress_screen_nopadding('.dp_search_input_1','.search_locked_tooltip_1'); checkInputChange('.dp_search_input_1'); } e.stopPropagation(); }); $('.dp_search_input_1').on('focusout', function (e) { $('.search_locked_tooltip_1').hide(); setTimeout(function(){ $(".bdp_notification_text").css("display","inline-block"); }, 20); $(".dp_doc-viewer_notification_1").removeClass("isExpanded"); $('.dp_search_input_1').css("padding-right","0px"); e.stopPropagation(); }); //bucket 2 & 3 $('.dp_search_input_2, .dp_search_input_3').on('focus', function () { if($(this).val() == ""){ $('.search_locked_tooltip_2').show(); checkClass('.dp_search_input_2, .dp_search_input_3'); } checkKeyPress_screen('.dp_search_input_2, .dp_search_input_3', '.search_locked_tooltip_2'); checkInputChange('.dp_search_input_2, .dp_search_input_3'); }); $('.dp_search_input_2, .dp_search_input_3').on('focusout', function () { $('.search_locked_tooltip_2').hide(); $('.search_locked_tooltip_1').hide(); checkClass('.dp_search_input_2, .dp_search_input_3'); }); } } $(window).on("resize", stuffForResizeAndReady); $(document).on("ready", stuffForResizeAndReady); })(); </script> <script type="text/javascript"> $(document).ready(function(){ if($("#bdp_doc-viewer-image_start").hasClass("bdp_preview_single_hideDoc")){ $('.dp_wordSearch_fieldset_2').css("margin-bottom","0"); } else{ $('.dp_wordSearch_fieldset_2').css("margin-bottom","18px"); } }); </script> <script type="text/javascript"> // For Mixpanel Tracking var dbFilename = 53729; var tracker = new MixpanelEventTracking(); tracker.super_properties['Page Name'] = 'Document - Basic'; var pageNum = 1; var endPage = 2; var relatedContentBucket = ; var openPopup = function (e) { $("html").addClass("ch_popup_enabled"); $("#ch_basicDocPage_popup").removeClass("mfp-hide"); $.ajax({ url: "/api/v1/update-have-seen-account-creation-popup/", type: "POST", success: function () { }, error: function () { } }); }; var course = {"school_name":"Rutgers","prof_name":"GayatreeGanu","dept_acro":"COMP APPS","term_string":"Spring","course_id":239398,"canonical_course_id":239398,"school_id":22,"dept_id":3104,"course_num":"170","year":2008,"term":3,"prof_id":83329,"course_name":"Computer Applications for Business","professor":{"prof_pk":83329,"prof_id":83329,"school_id":22,"dept_id":0,"name":"GayatreeGanu"},"resource_url":"https:\/\/www.coursehero.com\/sitemap\/schools\/22-Rutgers\/courses\/239398-COMP-APPS170\/"}; var closePopup = function (e) { $("html").removeClass("ch_popup_enabled"); $("#ch_basicDocPage_popup").addClass("mfp-hide"); } $(document).ready(function(){ //setup attributes for ga tracking $(".bdp_stickyHeader_action, .bdp_header_action, .bdp_roadblock_action, .bdp_viewDoc_action").attr('data-doc-landing-ga', 'Sign Up'); $("#ch-header").find("a").attr('data-doc-landing-ga', "Header"); $("#ch_breadcrumbs").find("a").attr('data-doc-landing-ga', "Breadcrumb"); $(".bdp_popularDocAside_container").find("a").attr('data-doc-landing-ga', "Right Related"); $(".ch_docs-related_bundle").find("a").attr('data-doc-landing-ga', "Bottom Related"); $(".ch_docInfo_container").find("a").attr('data-doc-landing-ga', "Doc Info"); $(".ch_recently-viewed-docs-side_container").find("a").attr('data-doc-landing-ga', "Recently Viewed"); $(".ch_appDownload_bundle").find("a").attr('data-doc-landing-ga', "App"); $(".ch_docSocialShare_bundle").find("a").attr('data-doc-landing-ga', "Social"); $(".ch-footer-links_container").find("a").attr('data-doc-landing-ga', "Footer"); }); $('#bdp_doc-viewer-image_start').waypoint(function (direction) { if (direction === 'down') { $('.bdp_stickyHeader_container').addClass('visible').removeClass('invisible'); } else { $('.bdp_stickyHeader_container').addClass('invisible').removeClass('visible'); } }); $('.ch_docBottomActions_content').waypoint(function (direction) { if (direction === 'up') { $('.bdp_stickyHeader_container').addClass('visible').removeClass('invisible'); } else { $('.bdp_stickyHeader_container').addClass('invisible').removeClass('visible'); } }, { offset: '75%' }); // set page num change to only occur after scroll from 1st page var pageScrolls = 0; $('.bdp_preview_single').waypoint(function (direction) { if (direction === 'up' && pageNum > 1) { pageNum--; } else if (direction === 'down' && pageScrolls > 0 && pageNum < endPage) { pageScrolls++; pageNum++; } else if (direction === 'down' && pageScrolls < 1) { pageScrolls = 1; } $('.greenText').text(pageNum); }, { offset: '75%' }); $("#view-more-related").click(function () { tracker.track("View More Button Click", {"Type": "Doc"}); }); $("[data-ch-mixpanel-doc-thumb-tracking]").on('click', function (event) { var document_number = jQuery(event.delegateTarget).attr('data-ch-mixpanel-doc-thumb-tracking'); if (document_number) { var properties = {}; properties['Document Number'] = document_number; properties['Bucket'] = relatedContentBucket; tracker.track("Most Popular Document Clicks", properties); } }); window.isPremierDocPage = false; var courseAdviceStatsData = null; $("#doc_link_expired_close_btn").click(function(e) { e.preventDefault(); $(".doc_link_expired").hide(); }); </script> <script type="text/javascript"> setTimeout(function(){var a=document.createElement("script"); var b=document.getElementsByTagName("script")[0]; a.src=document.location.protocol+"//script.crazyegg.com/pages/scripts/0034/4159.js?"+Math.floor(new Date().getTime()/3600000); a.async=true;a.type="text/javascript";b.parentNode.insertBefore(a,b)}, 1); </script> <script type="text/javascript"> var _kiq = _kiq || []; (function(){ setTimeout(function(){ var d = document, f = d.getElementsByTagName('script')[0], s = d.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = '//s3.amazonaws.com/ki.js/59766/dqn.js'; f.parentNode.insertBefore(s, f); }, 1); })(); </script> <script type="text/javascript" charset="utf-8"> _kiq.push(['identify', '']); </script> <script type="text/javascript"> var _user_id = ''; // Set to the user's ID, username, or email address, or '' if not yet known. var _session_id = 'eod2iralmb8s7qj5l0vg59lc36'; // Set to a unique session ID for the visitor's current browsing session. var _sift = window._sift = window._sift || []; _sift.push(['_setAccount', 'c7f42e8b35']); _sift.push(['_setUserId', _user_id]); _sift.push(['_setSessionId', _session_id]); _sift.push(['_trackPageview']); (function() { function ls() { var e = document.createElement('script'); e.src = 'https://cdn.siftscience.com/s.js'; document.body.appendChild(e); } if (window.attachEvent) { window.attachEvent('onload', ls); } else { window.addEventListener('load', ls, false); } })(); </script> <script type="text/javascript">window.NREUM||(NREUM={});NREUM.info={"beacon":"bam.nr-data.net","licenseKey":"404bf9505f","applicationID":"4237716","transactionName":"NVFbZUFUC0RTAEcLXQwbekRAQQpaHQdcAUcPUVdFbFkEWVYKXQU=","queueTime":0,"applicationTime":433,"atts":"GRZYEwlOGEo=","errorBeacon":"bam.nr-data.net","agent":""}</script></body> </html>