CINXE.COM
User account - myLaurentian
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="chrome=1"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content="MyLaurentian Portal"> <meta name="msapplication-TileColor" content="#9f00a7"> <meta name="msapplication-TileImage" content="assets/assets/img/favicon/mstile-144x144.png"> <meta name="msapplication-config" content="assets/assets/img/favicon/browserconfig.xml"> <meta name="theme-color" content="#ffffff"> <title>User account - myLaurentian </title> <script type="text/javascript" src="https://my.laurentian.ca/empl/sites/all/libraries/html2canvas.js"></script> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/dom-to-image/2.6.0/dom-to-image.js"></script> <link rel="stylesheet" href="https://my.laurentian.ca/sites/all/themes/myLaurentian/assets/css/font-awesome.min.css"> <!--<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.2/css/font-awesome.min.css">--> <link rel="shortcut icon" href="/sites/all/themes/myLaurentian/assets/img/my_circle.png"> <style> #edit-masquerade-user-field { display: none !important; } #edit-submit { display: none !important; } .divheader { position: fixed; left: 500px; top: 0px; z-index: 10000; display: inline-block; } .ribbon a { color: #ffc423 !important; } .ribbon { font-size: 16px !important; /* This ribbon is based on a 16px font side and a 24px vertical rhythm. I've used em's to position each element for scalability. If you want to use a different font size you may have to play with the position of the ribbon elements */ width: 700px; background: #003e7e; color: #fff; text-align: center; padding: 1em 2em; /* Adjust to suit */ } </style> <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> <script type="text/javascript"> <!--//--><![CDATA[//><!-- window.jQuery || document.write("<script src='/sites/all/modules/jquery_update 2/replace/jquery/1.10/jquery.min.js'>\x3C/script>") //--><!]]> </script> <script type="text/javascript" src="https://my.laurentian.ca/misc/jquery.once.js?v=1.2"></script> <script type="text/javascript" src="https://my.laurentian.ca/misc/drupal.js?sg2boi"></script> <script type="text/javascript" src="https://my.laurentian.ca/sites/all/modules/google_analytics/googleanalytics.js?sg2boi"></script> <script type="text/javascript"> <!--//--><![CDATA[//><!-- (function(i,s,o,g,r,a,m){i["GoogleAnalyticsObject"]=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,"script","//www.google-analytics.com/analytics.js","ga");ga("create", "UA-83377325-1", {"cookieDomain":"auto"});ga("set", "anonymizeIp", true);ga("send", "pageview"); //--><!]]> </script> <script type="text/javascript"> <!--//--><![CDATA[//><!-- jQuery.extend(Drupal.settings, {"basePath":"\/","pathPrefix":"","ajaxPageState":{"theme":"myLaurentian","theme_token":"7CHcvlnEVelKd-ULcqCXq6phu4viJPcVDYH_2B8agbY","js":{"\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/1.10.2\/jquery.min.js":1,"0":1,"misc\/jquery.once.js":1,"misc\/drupal.js":1,"sites\/all\/modules\/google_analytics\/googleanalytics.js":1,"1":1},"css":{"modules\/system\/system.base.css":1,"modules\/system\/system.menus.css":1,"modules\/system\/system.messages.css":1,"modules\/system\/system.theme.css":1,"modules\/comment\/comment.css":1,"sites\/all\/modules\/date\/date_api\/date.css":1,"sites\/all\/modules\/date\/date_popup\/themes\/datepicker.1.7.css":1,"modules\/field\/theme\/field.css":1,"sites\/all\/modules\/logintoboggan\/logintoboggan.css":1,"modules\/node\/node.css":1,"modules\/search\/search.css":1,"modules\/user\/user.css":1,"modules\/forum\/forum.css":1,"sites\/all\/modules\/views\/css\/views.css":1,"sites\/all\/modules\/ckeditor 2\/css\/ckeditor.css":1,"sites\/all\/modules\/ctools\/css\/ctools.css":1,"sites\/all\/themes\/myLaurentian\/assets\/css\/styles.min.css":1,"sites\/all\/themes\/myLaurentian\/assets\/css\/vendors.min.css":1,"sites\/all\/themes\/myLaurentian\/assets\/css\/search.css":1,"sites\/all\/themes\/myLaurentian\/assets\/css\/laurentian.css":1}},"googleanalytics":{"trackOutbound":1,"trackMailto":1,"trackDownload":1,"trackDownloadExtensions":"7z|aac|arc|arj|asf|asx|avi|bin|csv|doc(x|m)?|dot(x|m)?|exe|flv|gif|gz|gzip|hqx|jar|jpe?g|js|mp(2|3|4|e?g)|mov(ie)?|msi|msp|pdf|phps|png|ppt(x|m)?|pot(x|m)?|pps(x|m)?|ppam|sld(x|m)?|thmx|qtm?|ra(m|r)?|sea|sit|tar|tgz|torrent|txt|wav|wma|wmv|wpd|xls(x|m|b)?|xlt(x|m)|xlam|xml|z|zip"}}); //--><!]]> </script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/material-design-iconic-font/2.2.0/css/material-design-iconic-font.min.css"> <title></title> <link href="https://my.laurentian.ca/sites/all/themes/myLaurentian/assets/css/styles.min.css" media="screen" rel="stylesheet" /><link href="https://my.laurentian.ca/sites/all/themes/myLaurentian/assets/css/vendors.min.css" media="screen" rel="stylesheet" /><link href="https://my.laurentian.ca/sites/all/themes/myLaurentian/assets/css/search.css" media="screen" rel="stylesheet" /><link href="https://my.laurentian.ca/sites/all/themes/myLaurentian/assets/css/laurentian.css" media="screen" rel="stylesheet" /><link href="https://my.laurentian.ca/sites/all/modules/ctools/css/ctools.css" media="all" rel="stylesheet" /><link href="https://my.laurentian.ca/modules/system/system.base.css" media="all" rel="stylesheet" /><link href="https://my.laurentian.ca/modules/system/system.menus.css" media="all" rel="stylesheet" /><link href="https://my.laurentian.ca/modules/system/system.messages.css" media="all" rel="stylesheet" /><link href="https://my.laurentian.ca/modules/system/system.theme.css" media="all" rel="stylesheet" /><link href="https://my.laurentian.ca/modules/comment/comment.css" media="all" rel="stylesheet" /><link href="https://my.laurentian.ca/sites/all/modules/date/date_api/date.css" media="all" rel="stylesheet" /><link href="https://my.laurentian.ca/sites/all/modules/date/date_popup/themes/datepicker.1.7.css" media="all" rel="stylesheet" /><link href="https://my.laurentian.ca/modules/field/theme/field.css" media="all" rel="stylesheet" /><link href="https://my.laurentian.ca/sites/all/modules/logintoboggan/logintoboggan.css" media="all" rel="stylesheet" /><link href="https://my.laurentian.ca/modules/node/node.css" media="all" rel="stylesheet" /><link href="https://my.laurentian.ca/modules/search/search.css" media="all" rel="stylesheet" /><link href="https://my.laurentian.ca/modules/user/user.css" media="all" rel="stylesheet" /><link href="https://my.laurentian.ca/modules/forum/forum.css" media="all" rel="stylesheet" /><link href="https://my.laurentian.ca/sites/all/modules/views/css/views.css" media="all" rel="stylesheet" /><link href="https://my.laurentian.ca/sites/all/modules/ckeditor 2/css/ckeditor.css" media="all" rel="stylesheet" /><link href="https://my.laurentian.ca/sites/all/themes/myLaurentian/assets/css/chartist.css" media="screen" rel="stylesheet" /> <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDAk6S-H647CHfDQ3zVHV03KAyDInNWTlk&libraries=places" type="text/javascript"></script> <script charset="utf-8" src="https://my.laurentian.ca/sites/all/themes/myLaurentian/assets/js/vendors.min.js"> </script> <script charset="utf-8" src="https://my.laurentian.ca/sites/all/themes/myLaurentian/assets/js/app.min.js"> </script> <script charset="utf-8" src="https://my.laurentian.ca/sites/all/themes/myLaurentian/assets/js/classie.js"> </script> <script charset="utf-8" src="https://my.laurentian.ca/sites/all/themes/myLaurentian/assets/js/jquery.matchHeight.js"> </script> <script charset="utf-8" src="https://my.laurentian.ca/sites/all/themes/myLaurentian/assets/js/chartist.js"> </script> <script charset="utf-8" src="https://my.laurentian.ca/sites/all/themes/myLaurentian/assets/js/bootbox.min.js"> </script> </head> <body id="top" class="theme-template-dark theme-pink alert-open alert-with-mat-grow-top-right"> <link href="https://my.laurentian.ca/sites/all/libraries/tour/css/itour.css" rel="stylesheet"> <!--<link href="https://my.laurentian.ca/sites/all/themes/myLaurentian/assets/css/chatbot.css?v=1739800336" rel="stylesheet"> --> <script src="https://my.laurentian.ca/sites/all/libraries/tour/js/jquery.itour.js"> </script> <script type="text/javascript" src="https://my.laurentian.ca/empl/sites/all/libraries/handlebar/moment.js?qwcqrw"></script> <script type="text/javascript" src="https://my.laurentian.ca/empl/sites/all/libraries/handlebar/moment-timezone.js?qwcqrw"></script> <script type="text/javascript" src="https://my.laurentian.ca/empl/sites/all/libraries/handlebar/handlebars.js?qwcqrw"></script> <script type="text/javascript" src="https://my.laurentian.ca/empl/sites/all/libraries/handlebar/handlebar-plugins/ifCond.js?qwcqrw"></script> <script type="text/javascript" src="https://my.laurentian.ca/empl/sites/all/libraries/handlebar/handlebar-plugins/indexOf.js?qwcqrw"></script> <script type="text/javascript" src="https://my.laurentian.ca/sites/all/libraries/i18n/jquery.i18n.js"></script> <script type="text/javascript" src="https://my.laurentian.ca/sites/all/libraries/i18n/jquery.i18n.messagestore.js"></script> <script type="text/javascript" src="https://my.laurentian.ca/sites/all/libraries/i18n/jquery.i18n.fallbacks.js"></script> <script type="text/javascript" src="https://my.laurentian.ca/sites/all/libraries/i18n/jquery.i18n.language.js"></script> <script type="text/javascript" src="https://my.laurentian.ca/sites/all/libraries/i18n/jquery.i18n.parser.js"></script> <script type="text/javascript" src="https://my.laurentian.ca/sites/all/libraries/i18n/jquery.i18n.emitter.js"></script> <script type="text/javascript" src="https://my.laurentian.ca/sites/all/libraries/i18n/jquery.i18n.emitter.bidi.js"></script> <script type="text/javascript" src="https://my.laurentian.ca/sites/all/libraries/i18n/jquery.i18n.init.js"></script> <div id="notifications"></div> <style> #std_num:before{font-family: 'FontAwesome'; color: #bcbdc0; position: relative; left: 20px; content: "\f007"; top: 14px; font-size: 18px; z-index: 1000;} #login_form #pass_box:before{font-family: 'FontAwesome'; color: #bcbdc0; position: absolute; left: 30px; content:"\f023"; top: 40px; font-size: 18px; z-index: 1000;} #login_form #pass_confirm_box:before{font-family: 'FontAwesome'; color: #bcbdc0; position: absolute; left: 30px; content:"\f023"; top: auto; margin-top: 10px; font-size: 18px; z-index: 1000;} #std_num input{top:-30px;} input[type=text]{width: 100%; background-color: #f9f9f9; border: 1px solid #e7e7e8; -webkit-box-shadow: none; padding: 10px 10px 10px 40px; position: relative;} #email_no input{top:-30px;} #email_no:before{font-family: 'FontAwesome'; color: #bcbdc0; position: relative; left: 20px; content:"\f003"; top: 14px; font-size: 18px; z-index: 1000;} input[type=text],input[type=password]{width: 100%; background-color: #f9f9f9; border: 1px solid #e7e7e8; -webkit-box-shadow: none; padding: 10px 10px 10px 40px; position: relative;} .reg_form label{display: block !important;} .dob{display: inline-block;} .rule{color: #a30046 !important;} #day{width: 100px; margin-right: 20px;} #month{width: 100px; margin-right: 20px;} #year{width: 150px;} #em_mail{margin-top: 20px !important;} #sub_buttons{text-align: right;} #conf_pass{margin-top: 20px !important;} @media (min-width: 993px) { body{background-repeat: no-repeat; background-size: cover; background-image: url('../sites/all/themes/myLaurentian/assets/img/login/login_img_04.jpg');} ::-webkit-scrollbar { width: 0px; background-color: inherit; } } </style> <body id="login"> <div class="outer"> <div class="middle"> <div id="login_form" class="reg_form"> <img src="https://my.laurentian.ca/sites/all/themes/myLaurentian/assets/img/logo_en.svg" id="logo"> <div id="language"> <a href="https://ma.laurentienne.ca/user/register?language=fr">Fran莽ais</a></div><br /> <div id="reg_box"> <form id="reg" name="reg" method="post"> <h3>Registration</h3> <div class="form-item form-type-textfield "> <label>Student Number <span class="form-required" title="This field is required.">*</span></label> <p>Please refer to your <b>Laurentian University Acknowledgement letter</b> for your student number.</p> <div id="std_num"> <input type="text" name="std_num" value="" maxlength="60" class="form-text required" placeholder="ex.0000000"> </div> </div> <div class="form-item form-type-select "> <label>Date of Birth <span class="form-required" title="This field is required.">*</span></label> <div id="dob"> <select name="dob_year" class="dob" id="year" style="margin-right: 15px;"> <option value="" disabled="disabled" selected=selected>Year</option> <option value="2025">2025</option><option value="2024">2024</option><option value="2023">2023</option><option value="2022">2022</option><option value="2021">2021</option><option value="2020">2020</option><option value="2019">2019</option><option value="2018">2018</option><option value="2017">2017</option><option value="2016">2016</option><option value="2015">2015</option><option value="2014">2014</option><option value="2013">2013</option><option value="2012">2012</option><option value="2011">2011</option><option value="2010">2010</option><option value="2009">2009</option><option value="2008">2008</option><option value="2007">2007</option><option value="2006">2006</option><option value="2005">2005</option><option value="2004">2004</option><option value="2003">2003</option><option value="2002">2002</option><option value="2001">2001</option><option value="2000">2000</option><option value="1999">1999</option><option value="1998">1998</option><option value="1997">1997</option><option value="1996">1996</option><option value="1995">1995</option><option value="1994">1994</option><option value="1993">1993</option><option value="1992">1992</option><option value="1991">1991</option><option value="1990">1990</option><option value="1989">1989</option><option value="1988">1988</option><option value="1987">1987</option><option value="1986">1986</option><option value="1985">1985</option><option value="1984">1984</option><option value="1983">1983</option><option value="1982">1982</option><option value="1981">1981</option><option value="1980">1980</option><option value="1979">1979</option><option value="1978">1978</option><option value="1977">1977</option><option value="1976">1976</option><option value="1975">1975</option><option value="1974">1974</option><option value="1973">1973</option><option value="1972">1972</option><option value="1971">1971</option><option value="1970">1970</option><option value="1969">1969</option><option value="1968">1968</option><option value="1967">1967</option><option value="1966">1966</option><option value="1965">1965</option><option value="1964">1964</option><option value="1963">1963</option><option value="1962">1962</option><option value="1961">1961</option><option value="1960">1960</option><option value="1959">1959</option><option value="1958">1958</option><option value="1957">1957</option><option value="1956">1956</option><option value="1955">1955</option><option value="1954">1954</option><option value="1953">1953</option><option value="1952">1952</option><option value="1951">1951</option><option value="1950">1950</option><option value="1949">1949</option><option value="1948">1948</option><option value="1947">1947</option><option value="1946">1946</option><option value="1945">1945</option><option value="1944">1944</option><option value="1943">1943</option><option value="1942">1942</option><option value="1941">1941</option><option value="1940">1940</option><option value="1939">1939</option><option value="1938">1938</option><option value="1937">1937</option><option value="1936">1936</option><option value="1935">1935</option><option value="1934">1934</option><option value="1933">1933</option><option value="1932">1932</option><option value="1931">1931</option><option value="1930">1930</option><option value="1929">1929</option><option value="1928">1928</option><option value="1927">1927</option><option value="1926">1926</option><option value="1925">1925</option><option value="1924">1924</option><option value="1923">1923</option><option value="1922">1922</option><option value="1921">1921</option><option value="1920">1920</option> </select> <select name="dob_month" class="dob" id="month"> <option value="" disabled="disabled" selected=selected>Month</option> <option value="01">January</option><option value="02">February</option><option value="03">March</option><option value="04">April</option><option value="05">May</option><option value="06">June</option><option value="07">July</option><option value="08">August</option><option value="09">September</option><option value="10">October</option><option value="11">November</option><option value="12">December</option> </select> <select name="dob_day" class="dob" id="day"> <option value="" disabled="disabled" selected=selected>Day</option> <option value="01">1</option><option value="02">2</option><option value="03">3</option><option value="04">4</option><option value="05">5</option><option value="06">6</option><option value="07">7</option><option value="08">8</option><option value="09">9</option><option value="10">10</option><option value="11">11</option><option value="12">12</option><option value="13">13</option><option value="14">14</option><option value="15">15</option><option value="16">16</option><option value="17">17</option><option value="18">18</option><option value="19">19</option><option value="20">20</option><option value="21">21</option><option value="22">22</option><option value="23">23</option><option value="24">24</option><option value="25">25</option><option value="26">26</option><option value="27">27</option><option value="28">28</option><option value="29">29</option><option value="30">30</option><option value="31">31</option> </select> </div> </div> <div class="form-item form-type-textfield " id="em_mail"> <label>Last Name <span class="form-required" title="This field is required.">*</span></label> <div id="lastname" style="margin-bottom: 20px;"> <input type="text" name="lastname" value="" maxlength="60" class="form-text required" placeholder=""> </div> </div> <div id="sub_buttons"> <input type="submit" name="verify" class="btn btn-primary" value="Continue" /> </div> </form> </div> <div class="clear"></div> </div> <div id="login_foot"> </div> </div> </body> <script> $('#login_form').on("change","#password",function(){ validatePass(); }) $('#login_form').on("change","#confirm_password",function(){ validatePass(); }) $('#pset').submit(function(){ if(!validatePass()) { return false; } else { $('input[name="set"]').attr('disabled','disabled'); $('input[name="set"]').val('Please wait...'); return true; } }) function validatePass(){ $('.rule').hide(); var pass = $('#password').val().toLowerCase(); var pass2 = $('#password').val(); var confirm = $('#confirm_password').val(); var valid = true; var first = ('').toLowerCase(); var last = ('').toLowerCase(); var username = ''; if(pass == '' || confirm == '') { return false; } if((pass2 != '' && confirm != '') && (pass2 != confirm)) { $('#rule1').fadeIn(); return false; } if(pass.length < 8) { $('#rule2').fadeIn(); valid = false; } if(pass.search(/\d+/g) == -1) { $('#rule3').fadeIn(); valid = false; } if(pass.search(/(test|demo)/) != -1) { $('#rule4').fadeIn(); valid = false; } if(pass.indexOf(first) != -1 || pass.indexOf(last) != -1 || pass.indexOf(username) != -1) { $('#rule5').fadeIn(); valid = false; } if(!valid) { return false; } else { return true; } } </script> <style> #screenshotsharing{background-color: #ffc423;} #screenshotsharing.inprogress{background-color: #d8e9f2;} .glyphicon-spin-jcs { -webkit-animation: spin 1000ms infinite linear; animation: spin 1000ms infinite linear; } @-webkit-keyframes spin { 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } 100% { -webkit-transform: rotate(359deg); transform: rotate(359deg); } } @keyframes spin { 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } 100% { -webkit-transform: rotate(359deg); transform: rotate(359deg); } } .kickback { display: none !important; } .screenshotMode .navbar-fixed-top{top: 40px;} .screenshotMode .sidebar.fixed { top: 120px; } body.screenshotMode { padding-top: 115px !important; } @media (max-width: 992px) { .screenshotMode .sidebar.fixed { top: 90px; } } </style> </body> <script> var clientID = "mqtt_js_" + parseInt(Math.random() * 100000, 10); var client = ""; function processMessageStd(message) { console.log(message); var destination = message.destinationName; var pieces = destination.split('/'); if(pieces[0] == 'screenshot') { var info = JSON.parse(message.payloadString); if(info['sender'] != clientID) { if(info['message'] == "disconnect") { alert($("html").attr("lang") == "en" ? "Your agent has closed the screenshot-sharing session. Your session will be closed." : "Votre agent a ferm茅 la session de partage de capture d'茅cran. Votre session sera ferm茅e."); $.ajax({ method: "POST", url: "/sites/all/custom/insight/closeConnection.php" }) .done(function(msg) { client.client.unsubscribe('screenshot/'+$('#mqttConn_guid').val()); $("#screenshotsharing").remove(); }); } } } } $.fn.eqHeights = function(options) { var defaults = { child: false, parentSelector: null }; var options = $.extend(defaults, options); var el = $(this); if (el.length > 0 && !el.data('eqHeights')) { $(window).bind('resize.eqHeights', function() { el.eqHeights(); }); el.data('eqHeights', true); } if (options.child && options.child.length > 0) { var elmtns = $(options.child, this); } else { var elmtns = $(this).children(); } var prevTop = 0; var max_height = 0; var elements = []; var parentEl; elmtns.height('auto').each(function() { if (options.parentSelector && parentEl !== $(this).parents(options.parentSelector).get(0)) { $(elements).height(max_height); max_height = 0; prevTop = 0; elements = []; parentEl = $(this).parents(options.parentSelector).get(0); } var thisTop = this.offsetTop; if (prevTop > 0 && prevTop != thisTop) { $(elements).height(max_height); max_height = $(this).height(); elements = []; } max_height = Math.max(max_height, $(this).height()); prevTop = this.offsetTop; elements.push(this); }); $(elements).height(max_height); }; (function() { 'use strict'; document.querySelector('.navbar-toggle.pull-left.m-15').addEventListener( 'click', function() { var child; document.body.classList.toggle('background--blur'); this.parentNode.nextElementSibling.classList.toggle('menu--on'); child = this.childNodes[1].classList; if (child.contains('material-design-hamburger__icon--to-arrow')) { child.remove('material-design-hamburger__icon--to-arrow'); child.add('material-design-hamburger__icon--from-arrow'); } else { child.remove('material-design-hamburger__icon--from-arrow'); child.add('material-design-hamburger__icon--to-arrow'); } }); })(); (function() { //setupBot(); if($('#screenshot_loading').length == 1) { $("body").addClass("screenshotMode"); var guid = $('#mqttConn_guid').val(); // add the ajax after to set it to accepted if(guid != "") { var subscribe = new Array({"type" : "screenshot", "key" : guid}); client = new mqttClient(clientID,subscribe); client.connectClient(); } } $("#mqttConn").change(function(){ $('#screenshot_loading').hide(); $("#capture").show(); }); $("#closeMqtt").click(function(){ if(window.confirm($("html").attr("lang") == "en" ? "Are you sure you want to close this session?" : "脢tes-vous s没r de vouloir fermer cette session?")) { $.ajax({ method: "POST", url: "/sites/all/custom/insight/closeConnection.php" }) .done(function(msg) { client.sendMsg(JSON.stringify({"message" : "disconnect","sender" : clientID}),0); client.client.unsubscribe('screenshot/'+$('#mqttConn_guid').val()); $("#screenshotsharing").remove(); $("body").removeClass("screenshotMode"); }); } }) $("#capture").click(function(e){ window.scrollTo(0,0); e.preventDefault(); var contentHeight = $('.navbar-fixed-top').height() +$('.main-container').height(); var windowHeight = window.outerHeight + window.innerHeight; var height = contentHeight > windowHeight ? contentHeight : windowHeight; $("#capture").hide(); $("#screenshot_progress").show(); $("#screenshotsharing").addClass("inprogress"); html2canvas(document.querySelector("body"),{ allowTaint: true, useCORS: true, logging: false, height: height, windowHeight:height }).then(canvas => { var screenshot = canvas.toDataURL(); $.ajax({ method: "POST", url: "/sites/all/custom/insight/saveImage.php", data: { image: screenshot} }) .done(function(msg) { //send if off to the agent client.sendMsg(JSON.stringify({"message" : "sent","sender" : clientID}),0); $("#screenshot_progress").hide(); $("body").addClass("screenshotMode"); $("#screenshotsharing").removeClass("inprogress"); $("#capture").show(); alert($("html").attr("lang") == "en" ? "The screenshot has been sent to your support agent." : "La capture d'茅cran a 茅t茅 envoy茅e 脿 votre agent de support."); }); }); }); // highlight current link var path2 = window.location.href; var page = path2.replace("https://my.laurentian.ca/", ""); /* if(page != '?q=articles'); $('a[href^="'+page+'"]').addClass('active'); */ $('.hamburger').click(function() { $(this).toggleClass('active'); }); $('.top_toggle').click(function() { var id = $(this).data('toggle'); $('.drop_menu[id!="' + id + '"]').hide(); $('.top_toggle[data-toggle!="' + id + '"]').parent().removeClass('active'); $(this).parent().toggleClass('active'); $('#' + id).toggle(); }); $('.matchHeight').matchHeight(); $('#mobile_top').click(function() { $('#navbar-right').toggle(); }); })(); </script> <style> #notifications { cursor: pointer; position: fixed; right: 0px; z-index: 9999; bottom: 0px; margin-bottom: 22px; margin-right: 15px; max-width: 300px; } </style> <script> $(document).ready(function() { $('form').on('keyup keypress', function(e) { var keyCode = e.keyCode || e.which; if (keyCode === 13 && e.target.nodeName.toLowerCase() !== "textarea") { e.preventDefault(); return false; } }); }); $('#close_action').click(function() { $('#feed').hide(); }) // check for service statuses var url = "https://laurentian-status-default-rtdb.firebaseio.com/luservices.json"; xmlhttp = new XMLHttpRequest(); xmlhttp.onreadystatechange = function () { if (xmlhttp.readyState == 4) { var data = $.parseJSON(xmlhttp.responseText); var opCount = 0; var maintCount = 0; var downCount = 0; jQuery.each(data,function(index,service){ if(service["Status"] == "Operational") { opCount++; } else if(service["Status"] == "Maintenance") { maintCount++; } else { downCount++; } }); //alert(downCount); if(downCount > 0) { color = "#a30046"; var text = $("html").attr("lang") == "en" ? "Some online Laurentian services are experiencing a disruption." : "Certains services en ligne de la Laurentienne exp茅rience une interruption de service."; } else if(maintCount > 0) { color = "#ffc423"; var text = $("html").attr("lang") == "en" ? "Some online Laurentian services are currently down for maintenance." : "Certains services en ligne de la Laurentienne sont actuellement ferm茅 pour l'entretien."; } else { text = $("html").attr("lang") == "en" ? "All online Laurentian services are operational." : "Tous les services en ligne de la Laurentienne sont op茅rationnels."; color = "#c1d72e"; } $("#navbar-right").append('<div class="primary" id="server-status"><a id="luservices_toggle" href="#" data-placement="bottom" role="button"><i class="fa fa-cloud nav-item" aria-hidden="true" style="color:'+color+' !important;"></i></a></div>'); $('#luservices_toggle').popover({ content: '<div style="width:200px;">'+text+'<a href="https://laurentianuniversity.github.io/servicestatus/" class="btn btn-primary btn-block" target="_blank">View Details <i class="fa fa-external-link" aria-hidden="true"></i></a></div>', html : true }); } }; xmlhttp.open("GET", url, true); xmlhttp.setRequestHeader("Cache-Control", "no-cache, no-store, max-age=0"); xmlhttp.setRequestHeader('Cache-Control', 'no-cache'); xmlhttp.setRequestHeader("Pragma", "no-cache"); xmlhttp.send(null); // $('#navbar-right').append('<div class="feed_toggle primary" style="background-color:#fff;"><i class="fa fa-bell nav-item" aria-hidden="true"></i></div>'); $('#navbar-right').on('click', '#notification_toggle', function() { if ($('#feed:visible').length == 1) $('#feed').hide(); else $('#feed').fadeIn("fast"); }); /* We gonna make a search D: */ function getDocCount() { $.ajax({ method: "GET", type: "GET", cache: true, async: true, url: "https://my.laurentian.ca/sites/all/custom/documents/notifyCount.php", data: {} }) .done(function(msg) { $('#doc_count').text(msg); }); } timer = 0; $('.morphsearch-form').on("submit", function(event) { event.preventDefault(); // Your custom search functions here }); $('.morphsearch-input').on('keyup', function() { if (timer) { clearTimeout(timer); } timer = setTimeout(mySearch, 400); }); Notify = function(text, callback, close_callback, style) { var time = '10000'; var $container = $('#notifications'); var icon = '<i class="fa fa-info-circle "></i>'; if (typeof style == 'undefined') style = 'warning' var html = $('<div class="alert alert-' + style + ' hide">' + icon + " " + text + '</div>'); $('<a>', { text: '脳', class: 'button close', style: 'padding-left: 10px;', href: '#', click: function(e) { e.preventDefault() close_callback && close_callback() remove_notice() } }).prependTo(html) $container.prepend(html) html.removeClass('hide').hide().fadeIn('slow') function remove_notice() { html.stop().fadeOut('slow').remove() } var timer = setInterval(remove_notice, time); $(html).hover(function() { clearInterval(timer); }, function() { timer = setInterval(remove_notice, time); }); html.on('click', function() { clearInterval(timer) callback && callback() remove_notice() }); } // updateOneCardLink(); /*(function(p,u,s,h){ p._pcq=p._pcq||[]; p._pcq.push(['_currentTime',Date.now()]); s=u.createElement('script'); s.type='text/javascript'; s.async=true; s.src='https://cdn.pushcrew.com/js/bdee0c4b4d13b062f6f4f0cfd244365c.js'; h=u.getElementsByTagName('script')[0]; h.parentNode.insertBefore(s,h); })(window,document); */ /* var OneSignal = OneSignal || []; OneSignal.push(["init", { appId: "a108c4e7-6d33-457d-87d8-db8a7fd60db1", autoRegister: true, subdomainName: 'mylaurentian', notifyButton: { enable:true }, safari_web_id: 'web.onesignal.auto.2c2f7f93-c22c-4405-a44b-05589b796f38', }]); OneSignal.push(["getUserId", function(userId) { console.log("OneSignal User ID:", userId); }]); OneSignal.push(["sendTags", {username: " "}]); * / function updateOneCardLink() { $('#onecardaddmoneylink').attr("href", "https://my.laurentian.ca/angularCards/onecard/getUser_v2.php" ); } /*var source = new EventSource("demo_sse.php"); source.onmessage = function(event) { Notify(event.data, "success"); }; */ function mySearch() { $('#search_results').hide(); var query = $('.morphsearch-input').val(); if (query.length < 3) return; $('#search_loader').fadeIn(); $('.result_list').html(' '); // lets try async var hasApp = 'student'; if (hasApp != 'applicant') var searchable = ['articles', 'processes', 'pages', 'departments', 'people']; else { var searchable = ['articles', 'pages', 'departments', 'people']; $('h2[data-header="processes"]').remove(); } $.each(searchable, function(index, value) { var category = value; $.ajax({ method: "GET", type: "GET", cache: true, async: true, url: "https://my.laurentian.ca/sites/all/custom/search/search_main.php", data: { query: query, mode: 'CSTM', sec: category, hasApp: hasApp } }) .done(function(msg) { $('#search_loader').hide(); $('#search_results').fadeIn(); $('#' + category + '_results').html(''); // if(category == 'processes') // console.log(msg); results = $.parseJSON(msg); result_count = results.length; if (category == 'articles' || category == 'pages') var limit = 10; else if (category == 'departments') var limit = 4; else if (category == 'people') var limit = 3; else var limit = 6; // return; if (result_count == 0) { $('h2[data-header="' + category + '"]').hide(); if (category == 'articles') $('#col1').hide(); if (category == 'processes' || category == 'pages') { if ($('#col2').children('h2:visible').length == 0) $('#col2').hide(); } if (category == 'departments' || category == 'people') { if ($('#col3').children('h2:visible').length == 0) $('#col3').hide(); } } else { if (category == 'articles') $('#col1').show(); if (category == 'processes' || category == 'pages') $('#col2').show(); if (category == 'departments' || category == 'people') { if ($('#col3').children('h2:visible').length >= 0) $('#col3').show(); } $('h2[data-header=' + category + ']').fadeIn(); count = 0; $.each(results, function(index, result) { if (count < limit) { //console.log(index); if (category == 'articles') html = '<a class="search-object" href="https://my.laurentian.ca/articles?item=' + result['id'] + '"><h3>' + result['title'] + '</h3></a>'; else if (category == 'people') html = '<div class="person_search search-object"><div class="person_profile"><img src="data:image/png;base64,' + result['photo'] + '" alt="' + result['name'] + '"/><div class="person_info"><h3>' + result[ 'name'] + '</h3><span class="pos_title">' + result['position'] + '</span><span class="pos_dept">' + result['dept'] + '</span></div><div class="person_contact_info"><span class="person_contact"><i class="fa fa-envelope-o" aria-hidden="true"></i> <a href="mailto:' + result['email'] + '">' + result['email'] + '</a></span><span class="person_contact"> <i class="fa fa-phone" aria-hidden="true"></i> ' + result['phone'] + '</span></div></div>'; else if (category == 'departments') { html = '<a class="search-object" href="https://my.laurentian.ca/articles?tag=' + result['id'] + '&type=department"><h3>' + result['name'] + '</h3><p>' + result['desc'] + '</p></a>'; } else html = '<a class="search-object" href="https://my.laurentian.ca/' + result['id'] + '"><h3>' + result['name'] + '</h3><p>' + result['desc'] + '</p></a>'; $('#' + category + '_results').append(html); count++; } }); if (result_count > limit) { $('#more_' + category).attr('href', 'https://my.laurentian.ca/searchResult?type=' + category + '&query=' + query); $('#more_' + category).show(); } else { $('#more_' + category).hide(); } } }); }); } </script> <script type="text/javascript" src="/_Incapsula_Resource?SWJIYLWA=719d34d31c8e3a6e6fffd425f7e032f3&ns=1&cb=1571552883" async></script></html>