1windowWidth = $(window).innerWidth(); 2windowHeight = window.innerHeight; 3 4console.log(windowWidth+'x'+windowHeight) 5 6/* 7setTimeout(function(){ 8 $('#loading-screen-container').addClass('remove') 9 10 setTimeout(function(){ 11 $('#loading-screen-container').remove() 12 }, 1000) 13 14}, 2500) 15*/ 16 17 18 19numPages = 9; 20 21$('#master-slide').width((windowWidth*numPages)) 22$('.page').width(windowWidth+'px') 23// $('.page').height(windowHeight+'px') 24 25 26page = 0; 27path = ''; 28first = '' 29last = '' 30email = '' 31phone = '' 32hear = '' 33masters = '' 34 35interestsArr = []; 36interestsIdArr = []; 37electivesArr = []; 38 39$('.button').on('click',function(){ 40 console.log(windowWidth) 41 id = $(this).data('id') 42 43 switch(id) { 44 case 'page1': 45 46 47 setTimeout(function(){ 48 $('.page').not('#page2').removeClass('height') 49 }, 1000) 50 51 $('#page2').addClass('height') 52 53 $('#master-slide').css('margin-left','-' + windowWidth + 'px') 54 55 56 page = 1; 57 break; 58 59 case 'page2': 60 61 62 63 64 pathArr = [] 65 66 if ($('.option.interest').hasClass('active')) { 67 pathArr.push(pathWay); 68 69 $('#page3').addClass('height') 70 71 $('#master-slide').css('margin-left','-' + (windowWidth*2) + 'px') 72 window.scrollTo(0,0) 73 74 } 75 76 page = 2; 77 78 break; 79 80 case 'page3': 81 electivesArr = [] 82 imageName = path 83 valid = true; 84 85 $('.option.active.elective').each(function(){ 86 elective = $(this).find('.option-select').data('interest') 87 electivesArr.push(elective) 88 89 }) 90 91 if(chosenInts > 0 ) { 92 setTimeout(function(){ 93 $('.page').not('#page4').removeClass('height') 94 }, 1000) 95 96 $('#page4').addClass('height') 97 98 $('#master-slide').css('margin-left','-' + (windowWidth*3) + 'px') 99 window.scrollTo(0,0) 100 page = 3; 101 } else{ 102 $('#level-error').show(); 103 } 104 105 106 107 108 109 break; 110 111 case 'page4': 112 113 114 setTimeout(function(){ 115 $('.page').not('#page5').removeClass('height') 116 }, 1000) 117 $('#page5').addClass('height') 118 119 $('#master-slide').css('margin-left','-' + (windowWidth*4) + 'px') 120 window.scrollTo(0,0) 121 122 123 124 page = 4; 125 126 127 break; 128 129 case 'page5': 130 131 132 133 page = 5; 134 135 if(chosenSect > 0) { 136 setTimeout(function(){ 137 $('.page').not('#page6').removeClass('height') 138 }, 1000) 139 $('#page6').addClass('height') 140 141 $('#master-slide').css('margin-left','-' + (windowWidth*5) + 'px') 142 window.scrollTo(0,0) 143 } else{ 144 $('#industry-error').show(); 145 } 146 147 break; 148 149 case 'page6': 150 151 152 153 page = 6; 154 155 if(chosenEmp > 0) { 156 setTimeout(function(){ 157 $('.page').not('#page7').removeClass('height') 158 }, 1000) 159 $('#page7').addClass('height') 160 161 $('#master-slide').css('margin-left','-' + (windowWidth*6) + 'px') 162 window.scrollTo(0,0) 163 }else{ 164 $('#special-error').show(); 165 } 166 167 break; 168 169 case 'page7': 170 171 firstName = $('#first-name').val(); 172 lastName = $('#last-name').val(); 173 email= $('#email').val(); 174 phone = iti.getNumber(); 175 hear = $('#hear').val(); 176 masters = $('[name="masters-complete"]:checked').val(); 177 178 page = 7; 179 180 if (firstName=='' || lastName=='' || email=='' || phone=='' || hear =='' || $('[name="masters-complete"]:checked').length < 1 ){ 181 $('.form-error').show(); 182 }else{ 183 $('#page8').addClass('height') 184 185 $('#master-slide').css('margin-left','-' + (windowWidth*7) + 'px') 186 window.scrollTo(0,0) 187 } 188 189 break; 190 191 case 'page8': 192 193 194 195 page = 8; 196 197 198 $('#page9').addClass('height') 199 200 $('#master-slide').css('margin-left','-' + (windowWidth*8) + 'px') 201 window.scrollTo(0,0) 202 203 204 break; 205 } 206}) 207 208$('#path-error').hide() 209$('#level-error').hide() 210$('#industry-error').hide(); 211$('#special-error').hide(); 212 213 214xcareerPath = ''; 215xedLevels = ''; 216xcompetencies = ''; 217xsector = ''; 218xemphasis = ''; 219chosenInts = 0; 220pathWay = 0; 221chosenSect = 0; 222chosenEmp = 0; 223 224$('#page2 .page-controls .button').on('click',function(){ 225 if ($('.option.interest').hasClass('active')) { 226 $('#path-error').hide() 227 } else{$('#path-error').show()} 228}) 229 230$('.back').on('click',function(){ 231 window.scrollTo(0,0) 232 page--; 233 $('#master-slide').css('margin-left','-' + (windowWidth*page) + 'px') 234 $(".page").removeClass('height') 235 $(this).closest('.page').prev('.page').addClass('height') 236}) 237 238$(window).resize(function(){ 239 windowWidth = $(window).innerWidth(); 240 windowHeight = window.innerHeight; 241 $('#master-slide').width((windowWidth*numPages)) 242 $('.page').width(windowWidth+'px') 243// $('.page').height(windowHeight-100+'px') 244 $('#master-slide').css('margin-left','-' + (windowWidth*page) + 'px') 245}) 246
247$('.option-details').on('click',function(){ 248 detailBody = $(this).closest('.option').find('.option-body'); 249 250 if (detailBody.hasClass('active')){ 251 $(this).find('i').replaceWith('<i class="fas fa-chevron-down"></i>') 252 $(detailBody).removeClass('active') 253 254 } else{ 255 $(detailBody).addClass('active') 256 $(this).find('i').replaceWith('<i class="fas fa-chevron-up"></i>') 257 } 258 259}) 260 261 262 263$('.option-select.elective').on('click',function(){ 264 selectedOption = $(this).parent() 265 266 $('.option.elective .add-interest-btn').text('SELECT'); 267 $('.option.elective').removeClass('active'); 268 $('.option-select.elective').find('i').replaceWith('<i class="fal fa-plus-circle"></i>'); 269 $('#elective-error').removeClass('active'); 270 $('.option-body').removeClass('active'); 271 $('.option-details i').replaceWith('<i class="fas fa-chevron-down"></i>'); 272 273 274 if (selectedOption.hasClass('active')){ 275 $(this).find('i').replaceWith('<i class="fal fa-plus-circle"></i>') 276 $(selectedOption).removeClass('active') 277 selectedOption.find('.add-interest-btn').text('SELECT') 278 chosenInts = 0 279 } else{ 280 $('#elective-error').addClass('active') 281 $(this).find('i').replaceWith('<i class="fal fa-check-circle"></i>'); 282 $(selectedOption).addClass('active') 283 selectedOption.find('.add-interest-btn').text('REMOVE') 284 $('.option-body.active').removeClass('active') 285 chosenInts = $(this).data('id') 286 xedLevels = $(this).data('interest') 287 } 288 289}) 290 291 292 293 294$('.option-select.interest').on('click',function(){ 295 selectedOption = $(this).parent() 296 297 $('.option').removeClass('active'); 298 $('.option-select.interest').find('i').replaceWith('<i class="fal fa-plus-circle"></i>') 299 300 $('.option-details i').replaceWith('<i class="fas fa-chevron-down"></i>') 301 $('.option.interest .button').text('SELECT'); 302 303 if (selectedOption.hasClass('active')){ 304 console.log('here') 305 $(this).find('i').replaceWith('<i class="fal fa-plus-circle"></i>') 306 $(selectedOption).removeClass('active') 307 selectedOption.find('.add-interest-btn').text('SELECT') 308 $('.option-body.active').removeClass('active') 309 } else{ 310 $(selectedOption).addClass('active') 311 $(this).find('i').replaceWith('<i class="fal fa-check-circle"></i>') 312 selectedOption.find('.add-interest-btn').text('REMOVE') 313 $('.option-body.active').removeClass('active') 314 pathWay = $('.option.active').find('.option-select').data('interest'); 315 console.log(pathWay); 316 } 317}) 318 319$('.add-interest-btn').on('click',function(){ 320 if($(this).parent().parent().hasClass('active')) { 321 $(this).parent().parent().find('.option-select').trigger('click') 322 $(this).parent().parent().find('.option-select').find('i').replaceWith('<i class="fal fa-plus-circle"></i>') 323 $('.option.interest').removeClass('active'); 324 $('.option.elective').removeClass('active'); 325 326 $(this).text('SELECT'); 327 } else { 328 $(this).parent().parent().addClass('active'); 329 $(this).parent().parent().parent().addClass('active'); 330 $(this).parent().parent().find('.option-select').trigger('click') 331 $(this).text('REMOVE'); 332 $(this).parent().parent().find('.option-select.interest').find('i').replaceWith('<i class="fal fa-check-circle"></i>') 333 } 334}) 335 336 337 338 339$('.path-option').on('click',function(){ 340 $('.elective-error').removeClass('active') 341 $('.error-doctoral-count').hide() 342 $('.error-graduate-count').hide() 343 electiveCount = 0; 344 $('.path-option').removeClass('active') 345 $('.path-hidden').removeClass('active') 346 $('.doctoral-hidden').removeClass('active') 347 $('.graduate-hidden').removeClass('active') 348 $('.option-select.elective .fal').removeClass('fa-check-circle').addClass('fa-plus-circle'); 349 path = $(this).data('path') 350 $(this).addClass('active') 351 $('.page3-btn').show() 352 353 $('.path-hidden .option').removeClass('active') 354 355 $('.path-hidden').addClass('active') 356 357 if (path == 'doctoral'){ 358 $('.doctoral-hidden').addClass('active') 359 $('.option-container.ce').hide() 360 $('.graduate-body').hide() 361 $('.doctoral-body').show() 362 $(this).find('.fal').removeClass('fa-file-certificate').addClass('fa-check-circle') 363 $('.path-option[data-path="graduate"] .fal').addClass('fa-award') 364 } else{ 365 $('.graduate-hidden').addClass('active') 366 $('.option-container.ce').show() 367 $('.doctoral-body').hide() 368 $('.graduate-body').show() 369 $('.path-option[data-path="doctoral"] .fal').addClass('fa-file-certificate') 370 $(this).find('.fal').removeClass('fa-award').addClass('fa-check-circle') 371 } 372 373 $('.page2-btn').show() 374 375 $('body').animate({ 376 scrollTop: $('.path-hidden').offset().top 377 }, 'slow'); 378 379}) 380 381 382 383$('.visualizer-sect').on('click',function(){ 384 $('.visualizer-sect').removeClass('active'); 385 $('.option.elective').removeClass('active'); 386 $('.visualizer-sect i').replaceWith('<i class="fal fa-plus-circle"></i>') 387 $('.option.elective .visualizer-btn').text('SELECT'); 388 $(this).addClass('active') 389 $(this).parent().addClass("active"); 390 $('.visualizer-sect.active').each(function(){ 391 chosenSect = $(this).data('id') 392 xsector = $(this).data('interest'); 393 }) 394 $('.visualizer-sect.active i').replaceWith('<i class="fal fa-check-circle"></i>') 395 396 if($('.option.elective').hasClass('active')){ 397 $(this).parent().find('.add-interest-btn').text('REMOVE'); 398 } else{ 399 $(this).parent().find('.add-interest-btn').text('SELECT') 400 } 401}) 402 403 404 405$('.visualizer-emp').on('click',function(){ 406 $('.visualizer-emp').removeClass('active'); 407 $('.option.elective').removeClass('active'); 408 $('.visualizer-emp i').replaceWith('<i class="fal fa-plus-circle"></i>') 409 $('.option.elective .visualizer-btn').text('SELECT'); 410 $(this).addClass('active') 411 $(this).parent().addClass("active"); 412 $('.visualizer-emp.active').each(function(){ 413 chosenEmp = $(this).data('id') 414 xemphasis = $(this).data('interest') 415 }) 416 $('.visualizer-emp.active i').replaceWith('<i class="fal fa-check-circle"></i>') 417 418 if($('.option.elective').hasClass('active')){ 419 $(this).parent().find('.add-interest-btn').text('REMOVE'); 420 } else{ 421 $(this).parent().find('.add-interest-btn').text('SELECT') 422 } 423 424}) 425 426 427$('#visualizer-visualize').on('click',function(){ 428 theData = {'Career Path': pathWay,'Education Levels':xedLevels,'Sector':xsector,'Emphasis':xemphasis} 429 430 theData = JSON.stringify(theData) 431 valid = true; 432 433 firstName = $('#first-name').val(); 434 lastName = $('#last-name').val(); 435 email= $('#email').val();
436 phone = iti.getNumber(); 437 hear = $('#hear').val(); 438 // masters = $('[name="masters-complete"]:checked').val(); 439 440 if($('#masters-yes').prop("checked") == true){ 441 certified = 'Yes'; 442 } else{ 443 certified = 'No'; 444 } 445 446 utm_source = $('#utm_source').val(); 447 utm_medium = $('#utm_medium').val(); 448 utm_campaign = $('#utm_campaign').val(); 449 utm_term = $('#utm_term').val(); 450 utm_content = $('#utm_content').val(); 451 452 $('#error-form').hide() 453 454 if (firstName == '' || lastName=='' || email=='' || phone=='' || !iti.isValidNumber() || hear==''){ 455 valid = false; 456 } else{ 457 458 } 459 460 if (valid){ 461 console.log('valid af') 462 463 //request to send to millionverifier email validation API 464 url_segment = window.location.pathname.split("/")[1]; 465 $.ajax({ 466 cache: false, 467 type : "POST", 468 url: "https://www.atsu.edu/themes/atsu/resources/email-validation.php", 469 data: {firstname:firstName,lastname:lastName,email:email,program:'DAT Visualizer',source:utm_source,url_segment:url_segment,phone:phone}, 470 success: function(result){ 471 console.log(result) 472 if(result == 1 || result == 3){//send to ROI, email is good. if result = 3 email verifier DB failed so send to ROI as well 473 $.ajax( 474 { 475 type: 'POST', 476 url: "assets/roi_ajax.php", 477 data: {fname:firstName,lname:lastName,email:email,phone:phone,visualizer_data:theData,sector:xsector,elective:elective,utm_source:utm_source,utm_medium:utm_medium,utm_campaign:utm_campaign,utm_term:utm_term,utm_content:utm_content,hear:hear,certified:certified}, 478 success: function(result){ 479 console.log(result); 480 dataLayer.push({'event': 'ats-form-visualizer-dat'}); 481 482 } 483 }); 484 } 485 } 486 }); 487 488 switch (chosenSect){ 489 case 1: 490 imageName = 'cp'+chosenInts+'.jpg'; 491 pdfName = 'cp'+chosenInts+'.pdf'; 492 break; 493 case 2: 494 imageName = 'cr'+chosenInts+'.jpg'; 495 pdfName = 'cr'+chosenInts+'.pdf'; 496 break; 497 case 3: 498 imageName = 'lr'+chosenInts+'.jpg'; 499 pdfName = 'lr'+chosenInts+'.pdf'; 500 break; 501 case 4: 502 imageName = 'il'+chosenInts+'.jpg'; 503 pdfName = 'il'+chosenInts+'.pdf'; 504 break; 505 case 5: 506 imageName = 'ed'+chosenInts+'.jpg'; 507 pdfName = 'ed'+chosenInts+'.pdf'; 508 break; 509 } 510 511 $('#chart-output').html('<img src="images/'+imageName+'" width="100%" class="zoom" data-magnify-src="images/'+imageName+'" >') 512 $('.print-outline-box').attr('href','images/'+pdfName); 513 $('.zoom').magnify(); 514 515 if (pathWay =='generalist'){ 516 $('.generalist-path.final').addClass('active') 517 } else { 518 $('.specialist-path.final').addClass('active') 519 } 520 521 $('.educational-final').each(function(){ 522 if ($(this).data('id')==chosenInts){ 523 $(this).addClass('active') 524 } 525 }) 526 527 $('.industry-title').text(xsector); 528 $('.emphasis-title').text(xemphasis); 529 530 sectorDesc = $('.visualizer-sect.active').parent().find('.option-body').html() 531 emphasisDesc= $('.visualizer-emp.active').parent().find('.option-body').html() 532 533 $('.industry-desc').html(sectorDesc); 534 $('.emphasis-desc').html(emphasisDesc); 535 536 $('#page8').css("position","absolute"); 537 $('#page8').css("top","0"); 538 $('#page8').css("left","0"); 539 540 } else{ 541 $('#error-form').show() 542 } 543}) 544 545$('.print-outline').on('click',function(){ 546 window.print(); 547}) 548 549 550$('#masters-yes'). click(function(){ 551 $('#masters-no').prop( "checked", false ); 552}) 553 554$('#masters-no'). click(function(){ 555 $('#masters-yes').prop( "checked", false ); 556})
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.