Changeset 415 in tmcsimulator for trunk/webapps/cptms/index.html


Ignore:
Timestamp:
06/18/2019 10:44:53 AM (7 years ago)
Author:
jdalbey
Message:

einotebook fix to #131

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/webapps/cptms/index.html

    r404 r415  
    163163    var cctv_infowindow; // We create just a single instance of info window. 
    164164 
     165    // Use larger VDS icons if we're being displayed on the video wall 
     166    // at the front of the classroom.  Launch page with any non-blank request parameter 
     167    // to trigger larger icons. 
     168    function initVDSicons() 
     169    { 
     170        var param_string = ''; 
     171 
     172        // get url parameters from the window 
     173        url = window.location.search; // e.g. ?num1=43&num2=23 
     174        // split into separate parameters 
     175        var parts = url.substring(1).split('&'); 
     176        // Extract the first parameter 
     177        param_string = parts[0]; 
     178        // If we have a non-blank parameter 
     179        if(param_string != undefined && param_string.trim() != "") 
     180        { 
     181            // Use large size circle icons 
     182            iconVDSgreen = "images/circle_green_lg.png"; 
     183            iconVDSyellow = "images/circle_yellow.png" 
     184            iconVDSred = "images/circle_red.png" 
     185            iconVDSwhite = "images/circle_white.png" 
     186            //var parts = param_string.split('&'); 
     187        }  
     188    } 
    165189 
    166190    // Initialize the view/hide buttons  
     
    171195        initCMSbutton(); 
    172196        initVDSbutton(); 
     197        initVDSicons(); 
    173198    } 
    174199 
Note: See TracChangeset for help on using the changeset viewer.