PATH:
home
/
antoinems
/
www
/
_Montreal_folklore
/
2015
/
__Nouveau dossier
/
res
/
Editing: indexPage.js
// File indexPage.js for the PhotoSwipe skin version 1.6.0 last change: 2017-07-15 19:35 var embedded = false; var disableAutoplay = 0; // if (disableAutoplay==0) autoPlay allowed var slidepage = false; var WindowsOS = false; var MacOS = false; var PC = false; var iOS = false; var Android = false; var iPhone = false; var iPad = false; var fromMap = false; var settingsVisible = false; var showMessage = false; var description = ''; var pageVisible = false; var initIndexDone = false; var albumTitle = ''; var mainIndexPageURL = ""; var albumFolder = ""; var IE = false; var FF = false; var Edge = false; var screenHeight=0; var loadedImageURL= ''; var onServer= false; var roundButtonHeight= 35; var fontSizeFactor= 1.0; var fontSize= 0; var currentButtonHeight = 0; var swipeThreshold = 75; // was 200; var deadZone = 40; var musicPage = false; var slide_index=-1; var gpsLocation = ''; var playing = false; var slieShowTimerID = 0; //var viewtime = 0; var indexPageFullScreen = false; var slidePageFullScreen = false; var mapShown = false; var parentURL = ""; var Landscape = true; var AutoPan360 = false; var AutoPanoramaShown = false; var tWidth = 0; var tHeight = 0; var winH = 0; var winW = 0; var ix=1; var xSpd=0; $(document).ready(function(){ if (((window.location.hash.length) > 10)) { str= window.location.hash.substring(12); slide_index = parseInt(str) - 1; slidepage = true; } else if ((window.location.search.length) > 0) { str= window.location.search.substring(1); if (str.substring(0,1)=="M") { str = str.substring(1); } if ((str.substring(0,1)!="f") && (str.substring(0,1)!="_")) { slide_index = parseInt(str); slidepage = true; fromMap = true; } } else { if ((pause==false) && !isFolder(0)) { // embedded Slide Show embedded = true; } } $('.pswp__container').bind('contextmenu', function(e) { return false; // hides o.a. Save as }); parentURL = document.referrer; albumTitle = document.title; mainIndexPageURL = location.href; var lastQM = mainIndexPageURL.lastIndexOf('?'); if (lastQM > 0) { mainIndexPageURL = mainIndexPageURL.slice(0,lastQM) }; lastQM = mainIndexPageURL.lastIndexOf('#'); if (lastQM > 0) { mainIndexPageURL = mainIndexPageURL.slice(0,lastQM) }; lastQM = mainIndexPageURL.lastIndexOf('/'); albumFolder = mainIndexPageURL.slice(0,lastQM+1); getDeviceInfo(); if (toggleButtonsAllowed) { $('.themeImage img, h1').click(toggleButtons); $('.themeImage img, h1').css({'cursor': 'pointer'}) } if (IE||FF) { $('body').css({'overflow-x': 'auto'}) } if (screen.width<500) { $('#msg').css({ 'font-size': '24px', 'line-height': '25px'}); } if (iPhone) { $('html').css({ 'padding-bottom': '80px'}); } if (enableSlideShow) { if (iOS) { $('#link--play').css({ 'right': '88px'}); } else if (Android) { $('#link--play').css({ 'right': '132px'}); } } if (iOS || FF || IE || Edge) $('#linkBack').hide(); $('html').keydown(function(evt) { keycommand(evt.which); }); if (!PC) { window.addEventListener('orientationchange', doOnOrientationChange); doOnOrientationChange(); // Initial execution if needed } $(window).on('resize', resizeWindow); getSavedData(); setViewerSettings(); index_ready_function(); if (embedded) { embedded= false; closeIndex(-1); } else { if (slidepage) { openPhotoSwipe(slide_index) } else refreshIndex(); } }); function backToParent() { if (parentURL.length > 0) document.location.href=parentURL; else window.close(); } function doOnOrientationChange() { switch(window.orientation) { case -90: case 90: //alert('landscape'); Landscape = true; break; default: //alert('portrait'); Landscape = false; break; } } function slideShowTimer() { if ((stopAfterLastSlide)&&((slide_index == items.length-1))) { document.images['$playpause'].src = play_img.src; clearTimeout(slideShowTimerID); playing= !playing; pswp.close(); } else { slideShowTimerID = setTimeout("slideShowTimer()",viewtime); pswp.next(); } }; function playpause() { if (PhotoSwipeOpen==true) { playing= !playing; if (!playing) { document.images['$playpause'].src = play_img.src; clearTimeout(slideShowTimerID); } else { document.images['$playpause'].src = pause_img.src; slideShowTimer(); } } }; function toggleExif() { if ( $('.exifInfo').is(":visible")) { $('.exifInfo').hide(); } else { $('.exifInfo').show(); } }; function toggleButtons() { if (buttonsVisible) $('#nav').hide(); else $('#nav').show(); buttonsVisible = !buttonsVisible; if (iPhone) { if (buttonsVisible && window.orientation!=0 && window.innerHeight==320) { $("#indexDiv").css({'top':deadZone, 'position': 'absolute'}); } else { $("#indexDiv").css({'top':0, 'position': 'absolute'}); } } } function setViewerSettings() { fontSize = fontSizeFactor*orgFontsize; var newSizepx= fontSize.toString() + 'px'; $('body').css('font-size',newSizepx); var newSize= fontSizeFactor*orgh1Fontsize; newSizepx= newSize.toString() + 'px'; $('h1').css('font-size',newSizepx); newSize= fontSizeFactor*orgbuttonFontsize; newSizepx= newSize.toString() + 'px'; $('button').css('font-size',newSizepx); if (roundButtonHeight < 20) roundButtonHeight= 35; // To prevent that there are no buttons at all currentButtonHeight = roundButtonHeight; var roundButtonpx= currentButtonHeight.toString() + 'px'; $('img.roundbutton').css('height',roundButtonpx).css('width',roundButtonpx); if (!iOS && (buttonOpacity != '1.0')) { $('.roundbutton').hover(function() { $(this).css({'opacity' : '1.0' }); }, function() { $(this).css({'opacity' : buttonOpacity }); }); } $('#nav').css('height',roundButtonpx); newSize= fontSizeFactor*30; if (newSize < currentButtonHeight) newSize= parseInt(currentButtonHeight) + 15; newSizepx= newSize.toString() + 'px'; $('.HorNav').css('line-height',newSizepx); newSize= fontSizeFactor*30; newSizepx= newSize.toString() + 'px'; $('.top-nav > ul > li > a').css('line-height',newSizepx); $('.top-nav > ul > li > ul > li a').css('line-height',newSizepx); if (PC && ($('audio').length>0) ) { if (disableAutoplay==0) { $('audio').attr('autoplay',''); } else { $('audio').removeAttr('autoplay'); } } }; function resizeWindow() { var resizeTimer; clearTimeout(resizeTimer); resizeTimer = setTimeout(function() { if (PhotoSwipeOpen || AutoPanoramaShown || mapShown) { refreshSlide() } else { refreshIndex();} //window.scrollTo(0, 0); }, 200); // was 100 if (PC||Android) { if (screenfull.isFullscreen) { {document.images['fs'].src = noFS_img.src}} else document.images['fs'].src = FS_img.src; } } function refreshIndex() { if (iPhone) { if (window.orientation!=0 && window.innerHeight==320) {// if landscape $("#indexDiv").css({ 'width': screen.height, 'top':deadZone, 'position': 'absolute'}); } else { $("#indexDiv").css({ 'width': screen.width, 'top':0, 'position': 'absolute'}); } } }; function refreshSlide() { if (AutoPanoramaShown) { /* expand panorama button has been clicked */ resetPanorama(); ExpandAutoPanorama(); } } function openSettings() { loadSettingsInForm(); if (PC) { $('#disableAutoplayCombo').show(); } else { $('#disableAutoplayCombo').hide(); } if (PC||Android) { $('#selectSlideFS').show(); } else { $('#selectSlideFS').hide(); } $('#settingsDiv').show(); } function closeSettings() { saveSettings(); // Settings from form to local storage getSettings(); // get settings variables from local storage $('#settingsDiv').hide(); } function testSettingsClick(event) { var id=event.target.id;//getting the clicked element id. if (id=="settings") closeWindows(); } function closeWindows() { if (settingsVisible) { closeSettings(); settingsVisible = false; } if (pageVisible) { closePage(); pageVisible= false; } if (showMessage) { showMessage = false; $('#msg').hide(); } } function getDeviceInfo() { var deviceAgent = navigator.userAgent.toLowerCase(); iOS = (deviceAgent.match(/(iphone|ipod|ipad)/)!=null); Android = (deviceAgent.match(/(android)/)!=null); iPhone = (deviceAgent.match(/(iphone|ipod)/)!=null); iPad = (deviceAgent.match(/ipad/)!=null); WindowsOS = (navigator.platform.indexOf("Win")!=-1); MacOS = (navigator.platform.indexOf("Mac")!=-1); PC = (WindowsOS||MacOS); IE = (navigator.userAgent.indexOf('MSIE') !== -1 || navigator.appVersion.indexOf('Trident/') > 0); FF = (navigator.userAgent.indexOf("Firefox")!=-1); Edge = (navigator.userAgent.indexOf("Edge")!=-1) if (iPhone && iPad) iPhone = false; screenHeight = screen.height; if (screen.width < screen.height) screenHeight = screen.width; } function getfilename(url) { index = url.lastIndexOf('/'); filename = url.substring(index+1,256); return filename; } function previous() { } function isFolder(index) { //if (index >= srcImg.length) { return false;} //if (index >= items.length) { return false;} //else { var IsFolder = (typeof(srcFolder) != "undefined"); if (IsFolder) {IsFolder = (srcFolder[index].length != 0) }; return IsFolder; //} } function next() { } function OpenShareDialog() { if (PhotoSwipeOpen) { //var image = encodeURIComponent(albumFolder + items[slide_index].src); // not used here } else { var url = encodeURIComponent(albumFolder); if (albumImageIndex > -1) { var image = encodeURIComponent(albumFolder + items[albumImageIndex].src); } else { var image = encodeURIComponent(albumFolder + items[0].src); } } var redirect_url = ''; var FBfeed = 'http://m.facebook.com/dialog/feed?app_id=' if (PC) FBfeed = 'http://www.facebook.com/dialog/feed?app_id=' var arg = FBfeed + appid + '&redirect_uri=' + redirect_url + '&PopupClose.html' + '&display=popup' + '&picture='; if (PhotoSwipeOpen) { return arg; } else { arg = arg + image + '&link=' + url; window.open(arg,'feedDialog','toolbar=0,status=0,width=626,height=436'); } }; function ProcLink() { if (linkURL[slide_index].indexOf('http') == 0) {; window.open(linkURL[slide_index]); } else { window.location=linkURL[slide_index]; } }; function getHelpURL() { var language = (window.navigator.userLanguage || window.navigator.language).slice(0,2).toUpperCase(); var helpURL = 'http://andrewolff.jalbum.net/Help_PhotoSwipe/PhotoSwipe_help'; if (PC) { helpURL = helpURL + '_PC_'; } else { helpURL = helpURL + '_iPad_'; }; if ((language == 'NL') || (language == 'EN')||(language == 'FR')||(language == 'DE')||(language == 'ES')||(language == 'SV')) { return helpURL + language + '.html' } else { return helpURL + 'EN' + '.html' }; } function showHelp() { window.open(getHelpURL()); } function showLocation() { if (gpsLocation.length > 0) { //alert("showLocation: " + gpsLocation); OpenMapDiv(gpsLocation); //window.open(resourcePath + "/GoogleMapLoc.html?" + gpsLocation); } }; var latlng = {}; function initMap() { var map = new google.maps.Map(document.getElementById('map'), { //zoom: 11, mapTypeId: mapType, //mapTypeId: google.maps.MapTypeId.ROADMAP, // mapTypeId: google.maps.MapTypeId.SATELLITE, center: latlng }); var geocoder = new google.maps.Geocoder; var infowindow = new google.maps.InfoWindow; geocodeLatLng(geocoder, map, infowindow); } function geocodeLatLng(geocoder, map, infowindow) { geocoder.geocode({'location': latlng}, function(results, status) { if (status === google.maps.GeocoderStatus.OK) { if (results[1]) { map.setZoom(initialZoom); var marker = new google.maps.Marker({ position: latlng, map: map }); infowindow.setContent('<span style="color:blue;">' + results[1].formatted_address +'</span>'); infowindow.open(map, marker); } else { window.alert('No results found'); } } else { window.alert('Geocoder failed due to: ' + status); } }); } function ExpandAutoPanorama() { pswp.close(); $('#indexDiv').hide(); $('#panorama').show(); if (playing) { playpause();} if (AutoPan360) { $("#panorama span").html('<img src="' + pswp.currItem.src + '" alt="" /><img src="' + pswp.currItem.src + '" alt="" /><img src="' + pswp.currItem.src + '" alt="" />'); } else { $("#panorama span").html('<img src="' + pswp.currItem.src + '" alt="" />'); } var newpos = (window.innerWidth - 4*currentButtonHeight)*0.5 - currentButtonHeight; var newpospx= newpos.toString() + 'px'; $('#panslidenavigation').css('left',newpospx); $('#panorama').swipe( { swipeDown:closePanorama, swipeUp:closePanorama, fingers: 1, excludedElements:".roundbutton", threshold: 200 // was swipeThreshold }); if (iPhone) { $('#panslidenavigation').css({'top':deadZone }); } //sizePanImg(0); winW = window.innerWidth; winH = window.innerHeight; var imgRatio = pswp.currItem.w / pswp.currItem.h; tHeight = pswp.currItem.h; tWidth = tHeight * imgRatio; if (tHeight<winH) { tWidth = (winH/tHeight)*tWidth; } if (tHeight>winH-4) { tHeight= winH-4; tWidth = tHeight * imgRatio; } AutoPanoramaShown=true; //autopanJustReset = false; // niet meer nodig?? $('#panorama').show(); $('#panslidenavigation').show(); if (PC) { ix=1; xSpd=0; //initMouseCapture(); $(document).mousemove(move); scroll(); } } function resetPanorama() { if (PC) {$(document).off("mousemove", move);} $('#panorama').hide(); $('#indexDiv').show(); $("#panorama span").html(''); $('#panslidenavigation').hide(); AutoPanoramaShown= false; openPhotoSwipe(slide_index); } function closePanorama(){ resetPanorama(); } function next(){ resetPanorama(); pswp.next(); } function previous(){ resetPanorama(); pswp.prev(); } function panplaypause(){ resetPanorama(); playpause(); } function scroll() { if (AutoPanoramaShown) { ix += xSpd; if (AutoPan360 ) { if (ix > 0) ix -= tWidth; if (ix < -tWidth) ix += tWidth; } else { if (ix > 0) ix = 0; if (ix < -tWidth + winW) ix = -tWidth + winW; } document.getElementById('panorama').style.left= ix + 'px'; setTimeout("scroll()",15); } } function move(e) { if (AutoPanoramaShown) { var mx=e.pageX; var my=e.pageY; if (mx > 0 && my > 50 && mx < winW) { xSpd=parseInt((winW-2*mx)/30); } else xSpd = 0; } } function OpenMapDiv(latlngStr) { pswp.close(); $('#indexDiv').hide(); $('#mapDiv').show(); if (iPhone) { if (Landscape) { $('#mapDiv').css({'top': '80px', 'position': 'absolute'}); $('#mapnavigation').css({'top':deadZone }); } else { $('#mapDiv').css({'top':0, 'position': 'absolute'}); $('#mapnavigation').css({'top':10}); } } mapShown = true; latlngStr = latlngStr.split(',', 2); latlng = {lat: parseFloat(latlngStr[0]), lng: parseFloat(latlngStr[1])}; $('#mapDiv').swipe( { swipeDown:closeMap, fingers: 1, excludedElements:".roundbutton", threshold: 200 // was swipeThreshold }); initMap(); } function closeMap() { $('#mapDiv').hide(); $('#indexDiv').show(); mapShown = false; openPhotoSwipe(slide_index); } function keycommand(keynum) { if ( $("*:focus").is("textarea, input") ) return; if (PhotoSwipeOpen) { switch(keynum) { case 32: if (enableSlideShow) { // space playpause(); } else { pswp.next(); } break; /* case 73: { ProcLink();} break; // I */ case 38: if (mapShown) closeMap(); // arrow up break; case 40: { showLocation();} break; // arrow down case 76: { showLocation(); } break; // L case 69: { toggleExif(); } break; // E } } else { switch(keynum) { case 72: { showHelp(); } break; // H case 83: { opencloseSettings(); } break; // S case 13: { closeIndex(-1);} break; // Enter, start Slide Show case 38: { try { up() } // arrow up catch(err) { window.close(); } } break; case 39: { // ==> try { nextindex() } catch(err) { nextalbum() } } break; case 37: { // <== try { previousindex() } catch(err) { previousalbum() } } break; case 40: { OpenGoogleMapsRoute();} break; // arrow down case 73: { MoreInfo();} break; // I case 77: { OpenGoogleMapsRoute();} break; // M case 69: { OpenGoogleEarthRoute();} break; // E case 84: { Track();} break; // T case 36: { Home();} break; // Home } } } function fullScreenToggle () { screenfull.toggle(); if (document.images['fs'].src == noFS_img.src) { document.images['fs'].src = FS_img.src } else {document.images['fs'].src = noFS_img.src} } function closeIndex(ind) { playing = false; if (ind==-1) { ind=0; if (enableSlideShow) playing = true; } closeWindows(); if (pageVisible) { closePage(); pageVisible= false; } if(settingsVisible) $('#opencloseSettings').trigger('click'); // saves settings ? replace by saveSettings? if ( albumOfAlbums && (typeof(items[ind].webloc) != 'undefined') && (items[ind].webloc.length > 0) ) { document.location.href=items[ind].webloc; } else if (isFolder(ind)==false) { slide_index = ind; if (playing) { slideShowTimerID = setTimeout("slideShowTimer()",viewtime); document.images['$playpause'].src = pause_img.src; } if (PC||Android) { indexPageFullScreen= screenfull.isFullscreen; if (slidePageFullScreen) { if (!screenfull.isFullscreen) screenfull.request(); } } openPhotoSwipe(ind); } else { document.location.href=srcFolder[ind]; } } function initSlide() { } function saveSettings(){ if (window.localStorage !== null) { var storage = window.localStorage; try { storage.disableAutoplay = document.getElementById('disableAutoplay').value; storage.slidePageFullScreen = document.getElementById('slidePageFullScreen').value; storage.roundButtonHeight = document.getElementById('roundButtonHeight').value; storage.fontSizeFactor = document.getElementById('fontSizeFactor').value; storage.viewtime = document.getElementById('viewtime').value; }catch(e) { // error with IE in local mode //alert("[7] saveSettings() catch(e)"); var form = window.document.forms.settings; roundButtonHeight = form.roundButtonHeight.value; fontSizeFactor = form.fontSizeFactor.value; } } else { // alert("[4] saveSettings() window.localStorage == null"); var form = window.document.forms.settings; roundButtonHeight = form.roundButtonHeight.value; fontSizeFactor = form.fontSizeFactor.value; } setViewerSettings(); //alert("[3] saveSettings() normally variables not changed yet, old viewtime: " + viewtime + " old roundButtonHeight: " + roundButtonHeight); } function getSavedData() { try { // alert("we are on the first main page"); if (window.localStorage !== null) { var storage = window.localStorage; if (storage.fontSizeFactor == null) {saveSettings();} // saveSettings is called if coockies are reset else { getSettings(); } } } catch(err) { setViewerSettings(); //alert(" IE local error"); } } function getSettings() { if (window.localStorage !== null) { var storage = window.localStorage; try { disableAutoplay = storage.disableAutoplay; slidePageFullScreen = (storage.slidePageFullScreen==1); roundButtonHeight = storage.roundButtonHeight; fontSizeFactor = storage.fontSizeFactor; viewtime = 1000*storage.viewtime; setViewerSettings(); //alert("[1] Variables loaded from localStorage, viewtime: " + viewtime + " roundButtonHeight: " + roundButtonHeight); }catch(e) { // error with IE in local mode //alert("[8] getSettings() catch(e)"); var form = window.document.forms.settings; disableAutoplay = form.disableAutoplay.value; roundButtonHeight = form.roundButtonHeight.value; fontSizeFactor = form.fontSizeFactor.value; } } else { //alert("[5] saveSettings() window.localStorage == null"); } } function loadSettingsInForm() { if (window.localStorage !== null) { var storage = window.localStorage; try { document.getElementById('disableAutoplay').value = storage.disableAutoplay; document.getElementById('slidePageFullScreen').value = storage.slidePageFullScreen; document.getElementById('roundButtonHeight').value = storage.roundButtonHeight; document.getElementById('fontSizeFactor').value = storage.fontSizeFactor; document.getElementById('viewtime').value = storage.viewtime; // alert("[2] Variables loaded from localStorage into form"); }catch(e) { // error with IE in local mode // alert("[9] loadSettingsInForm() catch(e)"); } } else { // alert("[6] loadSettingsInForm() window.localStorage == null"); } } function tryNext() { try { nextindex() } catch(err) { nextalbum() } } function tryPrev() { try { previousindex() } catch(err) { previousalbum() } } function tryDown() { try { up() } catch(err) { window.close(); } } function showTitle(Thumbnail) { if (!PC) { var title = Thumbnail.attr('title').replace("\n","<br>"); var position = Thumbnail.offset(); var wThumb = Thumbnail.width()/2; var msg = $('#msg'); msg.html(title); var wMsg = msg.width()/2; var leftPos = position.left + wThumb - wMsg if (leftPos < 0) leftPos=0; var distanceToWindowBorder = window.innerWidth - (leftPos + 2*wMsg); if (distanceToWindowBorder < 0) leftPos= leftPos + distanceToWindowBorder; msg.css({"left": leftPos, "top": position.top-60}); showMessage = true; setTimeout(function() { if ( showMessage ) msg.show(); }, 1000); // 400 } } function showPage() { $('#page').show(); } function closePage() { $('#page').hide(); }; function opencloseSettings() { if (settingsVisible) {closeSettings(); } else {openSettings()}; settingsVisible = !settingsVisible; if (pageVisible) { closePage(); pageVisible= false; } }; function ShowExtraPage() { pageVisible = false; showPage(); setTimeout(function() { pageVisible = true; // otherwise action cancelled in CloseWindows }, 200); }; function index_ready_function() { initIndexDone = true; pageVisible = false; settingsVisible = false; if (typeof(folderItemMinScreenHeight) != "undefined") { if (screenHeight < parseInt(folderItemMinScreenHeight)) { $(".folderItem").remove(); if ($("#topMenu ul > li").length==0) $("#topMenu").remove(); } } $("#navigation").show(); if (PC||Android) { $('#fs').show(); } // $('#commentbox').hide(); // $('#nextslideimage').hide(); if (iPhone) { if (buttonsVisible && window.orientation!=0 && window.innerHeight==320) { $("#indexDiv").css({'top':deadZone, 'position': 'absolute'}); } else { $("#indexDiv").css({'top':0, 'position': 'absolute'}); } $("#audioplayer audio").css({'height':64}); } var swipeEveryWhere = true; var checkThemeImage = false; if (typeof(swipesMinScreenHeight) != "undefined") { if (screenHeight < parseInt(swipesMinScreenHeight)) {checkThemeImage = true} } else checkThemeImage= true; if (checkThemeImage) { switch(swipesArea) { case 0: swipeEveryWhere = false; break; case 1: $(".themeImage").swipe( { swipeLeft:tryNext, swipeRight:tryPrev, swipeDown: tryDown, maxTimeThreshold:1000, fingers: 1, threshold:swipeThreshold }); swipeEveryWhere = false; break; case 2: } } if (swipeEveryWhere) { if(!IE) { $("#swipeMe").swipe( { swipeLeft:tryNext, swipeRight:tryPrev, swipeDown: tryDown, // swipeUp:OpenGoogleMapsRoute, maxTimeThreshold:1000, fingers: 1, threshold:swipeThreshold }); }; } var thumbnr = 0; $(".thumbs img").swipe({ tap:function(event, target) { showMessage = false; $('#msg').hide(); // thumbnr = parseInt($(this).attr('id')); // closeIndex(thumbnr); }, longTap:function(event, target) { showMessage = false; $('#msg').hide(); }, swipeStatus:function(event, phase, direction, distance, duration, fingerCount) { if (enableTaps) { if( phase=="start" ) {showTitle($(this));} else if ( phase=="end" ) { showMessage = false; $('#msg').hide(); } }} }); getSavedData(); // ?? not inss4 } function back() { window.close(); window.opener.focus(); } function openAuxWindow(url, windowName){ if ( typeof openAuxWindow.winrefs == 'undefined' ) { openAuxWindow.winrefs = {}; } if ( typeof openAuxWindow.winrefs[windowName] == 'undefined' || openAuxWindow.winrefs[windowName].closed ) { openAuxWindow.winrefs[windowName] = window.open(url, windowName); } else { openAuxWindow.winrefs[windowName].focus(); } }
SAVE
CANCEL