Changeset 30519 for main/trunk/model-sites-dev/mozarts-laptop/collect/digital-music-stand/script/musicstand-open.js
- Timestamp:
- 2016-05-09T22:04:34+12:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/model-sites-dev/mozarts-laptop/collect/digital-music-stand/script/musicstand-open.js
r30446 r30519 2 2 var GUITopGap = 135; 3 3 var GUIBotGap = 30; 4 var GUILeftRightGap = 80;4 var GUILeftRightGap = 60; // used to be 80 5 5 6 6 function openMusicStand(docid,pagePrefix,pageSuffix,numPages,maxPageWidth,maxPageHeight) … … 64 64 url += "&numPages="+numPages; 65 65 url += "&pageWidth="+pageWidth+"&pageHeight="+pageHeight; 66 url += "&pageWidthWithBreakbar="+pageWidth+(GUILeftRightGap/2); 67 url += "&musicStandWidth="+musicStandWidth+"&musicStandHeight="+musicStandHeight; 66 68 url += "&scaleFactor="+ratio; 67 69 … … 70 72 options += ',width='+musicStandWidth+',height='+musicStandHeight; 71 73 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 72 85 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 74 89 return false; 75 90 }
Note:
See TracChangeset
for help on using the changeset viewer.