Ignore:
Timestamp:
2016-05-09T22:04:34+12:00 (8 years ago)
Author:
davidb
Message:

Breakbar moved from right-hand side to left-hand side. Page turn upgraded to swipe left-to-right after breakbar marker; more carefully prescribed size of window through CGI params so page can be centred in window if opened up full-size, as can happen in Expeditee with embedded browser

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/model-sites-dev/mozarts-laptop/collect/digital-music-stand/script/musicstand-open.js

    r30446 r30519  
    22  var GUITopGap = 135;
    33  var GUIBotGap =  30;
    4   var GUILeftRightGap = 80;
     4  var GUILeftRightGap = 60; // used to be 80
    55
    66  function openMusicStand(docid,pagePrefix,pageSuffix,numPages,maxPageWidth,maxPageHeight)
     
    6464    url += "&numPages="+numPages;
    6565    url += "&pageWidth="+pageWidth+"&pageHeight="+pageHeight;
     66    url += "&pageWidthWithBreakbar="+pageWidth+(GUILeftRightGap/2);
     67    url += "&musicStandWidth="+musicStandWidth+"&musicStandHeight="+musicStandHeight;
    6668    url += "&scaleFactor="+ratio;
    6769
     
    7072    options += ',width='+musicStandWidth+',height='+musicStandHeight;
    7173
     74    //var options = 'toolbar=no, menubar=no, location=no, scrollbars=no, status=yes';
     75    //options += ', width='+musicStandWidth+', height='+musicStandHeight;
     76
     77    // The following worked in MS-Edge
     78    //var options = 'height='+Number(musicStandHeight-340)+', width='+musicStandWidth;
     79    //options += ', status=yes, toolbar=no, menubar=no, location=no';
     80
     81    //var options = "height=600, width=400, status=yes, toolbar=no, menubar=no, location=no";
     82
     83    console.log("Opening new window with options:" + options);
     84     
    7285    window.open(url, 'musicstand', options);
    73 
     86    //window.open(url, null, options);
     87    //window.open("Sample.htm", null, "height=600, width=400, status=yes, toolbar=no, menubar=no, location=no");
     88     
    7489    return false;
    7590  }
Note: See TracChangeset for help on using the changeset viewer.