| 
									
										
										
										
											2014-07-20 02:25:36 +04:00
										 |  |  | <!DOCTYPE html> | 
					
						
							|  |  |  | <html> | 
					
						
							|  |  |  | <head> | 
					
						
							| 
									
										
										
										
											2020-12-11 06:24:22 +03:00
										 |  |  | <title>ImageGrid.Viewer</title> | 
					
						
							| 
									
										
										
										
											2017-04-13 17:28:20 +03:00
										 |  |  | <meta charset="utf-8" /> | 
					
						
							| 
									
										
										
										
											2020-12-05 04:02:33 +03:00
										 |  |  | <!--meta http-equiv="Content-Security-Policy" 
 | 
					
						
							|  |  |  | 	content="script-src 'self' 'unsafe-inline' 'unsafe-eval';"--> | 
					
						
							| 
									
										
										
										
											2015-12-30 07:50:02 +03:00
										 |  |  | <meta name="msapplication-tap-highlight" content="no" /> | 
					
						
							| 
									
										
										
										
											2016-11-14 17:10:42 +03:00
										 |  |  | <meta name="viewport" content="width=device-width, user-scalable=no" /> | 
					
						
							| 
									
										
										
										
											2020-12-11 06:24:22 +03:00
										 |  |  | <!-- Fonts --> | 
					
						
							| 
									
										
										
										
											2017-10-06 17:43:02 +03:00
										 |  |  | <link rel="prefetch" href="css/fonts/Open_Sans/OpenSans-Bold.ttf" /> | 
					
						
							|  |  |  | <link rel="prefetch" href="css/fonts/Open_Sans/OpenSans-BoldItalic.ttf" /> | 
					
						
							|  |  |  | <link rel="prefetch" href="css/fonts/Open_Sans/OpenSans-ExtraBold.ttf" /> | 
					
						
							|  |  |  | <link rel="prefetch" href="css/fonts/Open_Sans/OpenSans-ExtraBoldItalic.ttf" /> | 
					
						
							|  |  |  | <link rel="prefetch" href="css/fonts/Open_Sans/OpenSans-Italic.ttf" /> | 
					
						
							|  |  |  | <link rel="prefetch" href="css/fonts/Open_Sans/OpenSans-Light.ttf" /> | 
					
						
							|  |  |  | <link rel="prefetch" href="css/fonts/Open_Sans/OpenSans-LightItalic.ttf" /> | 
					
						
							|  |  |  | <link rel="prefetch" href="css/fonts/Open_Sans/OpenSans-Regular.ttf" /> | 
					
						
							|  |  |  | <link rel="prefetch" href="css/fonts/Open_Sans/OpenSans-Semibold.ttf" /> | 
					
						
							|  |  |  | <link rel="prefetch" href="css/fonts/Open_Sans/OpenSans-SemiboldItalic.ttf" /> | 
					
						
							| 
									
										
										
										
											2020-12-11 06:24:22 +03:00
										 |  |  | <!-- CSS --> | 
					
						
							| 
									
										
										
										
											2017-10-06 17:43:02 +03:00
										 |  |  | <link rel="stylesheet" href="css/fonts.css" /> | 
					
						
							|  |  |  | <link rel="stylesheet" href="css/layout.css" /> | 
					
						
							|  |  |  | <link rel="stylesheet" href="css/editor.css" /> | 
					
						
							|  |  |  | <link rel="stylesheet" href="css/widget/browse.css" /> | 
					
						
							|  |  |  | <link rel="stylesheet" href="css/widget/overlay.css" /> | 
					
						
							|  |  |  | <link rel="stylesheet" href="css/widget/drawer.css" /> | 
					
						
							|  |  |  | <link rel="stylesheet" href="css/loader.css" /> | 
					
						
							|  |  |  | <link rel="stylesheet" href="css/experimenting.css" /> | 
					
						
							| 
									
										
										
										
											2014-10-13 00:18:26 +04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-12-11 06:24:22 +03:00
										 |  |  | <!-- Scripts --> | 
					
						
							| 
									
										
										
										
											2020-12-14 20:06:58 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | <!-- Global scope pollution test --> | 
					
						
							| 
									
										
										
										
											2020-12-15 05:08:06 +03:00
										 |  |  | <!--script> 
 | 
					
						
							| 
									
										
										
										
											2020-12-14 20:06:58 +03:00
										 |  |  | var __window = {...window}  | 
					
						
							|  |  |  | function scopeDiff(cur=window, base=__window){ | 
					
						
							|  |  |  | 	return Object.keys(cur) | 
					
						
							|  |  |  | 		.filter(function(k){  | 
					
						
							|  |  |  | 			return base[k] !== cur[k] }) | 
					
						
							|  |  |  | 		.reduce(function(res, k){ | 
					
						
							|  |  |  | 			res[k] = cur[k] | 
					
						
							|  |  |  | 			return res }, {})} | 
					
						
							| 
									
										
										
										
											2020-12-15 05:08:06 +03:00
										 |  |  | </script--> | 
					
						
							| 
									
										
										
										
											2020-12-14 20:06:58 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-12-11 06:24:22 +03:00
										 |  |  | <!-- DevTools fail-safe for electron/nw... --> | 
					
						
							| 
									
										
										
										
											2015-11-16 11:31:15 +03:00
										 |  |  | <script> | 
					
						
							| 
									
										
										
										
											2018-01-30 06:36:48 +03:00
										 |  |  | if(window.require){ | 
					
						
							| 
									
										
										
										
											2019-09-18 03:52:22 +03:00
										 |  |  | 	Object.defineProperty(window, 'STARTUP_DEVTOOLS_TIMEOUT', { | 
					
						
							|  |  |  | 		get: function(){ | 
					
						
							|  |  |  | 			return parseInt(localStorage.STARTUP_DEVTOOLS_TIMEOUT || 5000) }, | 
					
						
							|  |  |  | 		set: function(value){ | 
					
						
							|  |  |  | 			if(value == null){ | 
					
						
							|  |  |  | 				delete localStorage.STARTUP_DEVTOOLS_TIMEOUT | 
					
						
							| 
									
										
										
										
											2020-12-11 06:24:22 +03:00
										 |  |  | 				return } | 
					
						
							| 
									
										
										
										
											2019-09-18 03:52:22 +03:00
										 |  |  | 			value = parseInt(value) | 
					
						
							|  |  |  | 			;(value || value == 0) | 
					
						
							|  |  |  | 				&& (localStorage.STARTUP_DEVTOOLS_TIMEOUT = value) }, }) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-05-11 03:22:39 +03:00
										 |  |  | 	window.__devtools_failsafe = setTimeout(function(){ | 
					
						
							| 
									
										
										
										
											2017-10-06 17:43:02 +03:00
										 |  |  | 		// nw... | 
					
						
							|  |  |  | 		if(window.nw){ | 
					
						
							|  |  |  | 				nw.Window.get().showDevTools() | 
					
						
							|  |  |  | 		// electron... | 
					
						
							|  |  |  | 		} else { | 
					
						
							|  |  |  | 			try{ | 
					
						
							| 
									
										
										
										
											2021-05-02 23:27:09 +03:00
										 |  |  | 				require('electron').remote.getCurrentWindow() | 
					
						
							|  |  |  | 					.openDevTools({mode: 'undocked'}) | 
					
						
							| 
									
										
										
										
											2020-12-11 06:24:22 +03:00
										 |  |  | 			} catch(err){ } } | 
					
						
							|  |  |  | 	}, STARTUP_DEVTOOLS_TIMEOUT) } | 
					
						
							| 
									
										
										
										
											2015-11-16 11:31:15 +03:00
										 |  |  | </script> | 
					
						
							| 
									
										
										
										
											2014-10-09 23:18:35 +04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-12-11 06:24:22 +03:00
										 |  |  | <!-- Electron fix --> | 
					
						
							| 
									
										
										
										
											2020-12-14 20:06:58 +03:00
										 |  |  | <script>if(typeof(module) == 'object'){ window.__module = module; module = undefined }</script> | 
					
						
							| 
									
										
										
										
											2014-07-20 03:00:24 +04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-12-30 07:20:59 +03:00
										 |  |  | <!-- jQuery --> | 
					
						
							| 
									
										
										
										
											2014-07-21 02:30:24 +04:00
										 |  |  | <script src="ext-lib/jquery.js"></script> | 
					
						
							|  |  |  | <script src="ext-lib/jquery-ui.js"></script> | 
					
						
							| 
									
										
										
										
											2015-12-17 09:14:59 +03:00
										 |  |  | <script src="ext-lib/jquery.ui.touch-punch.min.js"></script> | 
					
						
							| 
									
										
										
										
											2015-12-30 07:20:59 +03:00
										 |  |  | <!-- velocity.js --> | 
					
						
							| 
									
										
										
										
											2015-12-22 05:49:32 +03:00
										 |  |  | <script src="ext-lib/velocity.min.js"></script> | 
					
						
							| 
									
										
										
										
											2015-12-30 07:20:59 +03:00
										 |  |  | <!-- hammer.js --> | 
					
						
							|  |  |  | <script src="ext-lib/hammer.min.js"></script> | 
					
						
							|  |  |  | <script src="ext-lib/jquery.hammer.js"></script> | 
					
						
							| 
									
										
										
										
											2020-12-11 06:24:22 +03:00
										 |  |  | <!-- lib --> | 
					
						
							| 
									
										
										
										
											2014-07-21 02:30:24 +04:00
										 |  |  | <script src="lib/jli.js"></script> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-12-11 06:24:22 +03:00
										 |  |  | <!-- Electron unfix --> | 
					
						
							| 
									
										
										
										
											2020-12-14 20:06:58 +03:00
										 |  |  | <script>if(window.__module){ module = window.__module; delete window.__module }</script> | 
					
						
							| 
									
										
										
										
											2017-07-16 23:18:19 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-12-11 06:24:22 +03:00
										 |  |  | <!-- RequireJS --> | 
					
						
							|  |  |  | <script> | 
					
						
							|  |  |  | // Electron... | 
					
						
							|  |  |  | // NOTE: we need to load the electron way first because the other way  | 
					
						
							|  |  |  | //		around requirejs messes things up... | 
					
						
							|  |  |  | if(typeof(process) != 'undefined'){ | 
					
						
							| 
									
										
										
										
											2020-12-12 22:41:49 +03:00
										 |  |  | 	require('./cfg/requirejs')(require) | 
					
						
							| 
									
										
										
										
											2020-12-11 06:24:22 +03:00
										 |  |  | 	requirejs('ui') } | 
					
						
							|  |  |  | </script> | 
					
						
							| 
									
										
										
										
											2020-12-12 04:55:35 +03:00
										 |  |  | <script src="node_modules/requirejs/require.js"></script> | 
					
						
							| 
									
										
										
										
											2018-01-13 01:59:52 +03:00
										 |  |  | <script>  | 
					
						
							| 
									
										
										
										
											2020-12-11 06:24:22 +03:00
										 |  |  | // Browser... | 
					
						
							|  |  |  | if(typeof(process) == 'undefined'){ | 
					
						
							|  |  |  | 	requirejs(['cfg/requirejs']) | 
					
						
							|  |  |  | 	requirejs(['ui']) } | 
					
						
							| 
									
										
										
										
											2018-01-13 01:59:52 +03:00
										 |  |  | </script> | 
					
						
							| 
									
										
										
										
											2014-07-21 02:30:24 +04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-07-20 02:25:36 +04:00
										 |  |  | </head> | 
					
						
							|  |  |  | <body> | 
					
						
							| 
									
										
										
										
											2020-12-12 05:13:02 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-12-11 06:24:22 +03:00
										 |  |  | <!-- XXX STUB: this fixes Chrome's tendency to mess up full screen colors 
 | 
					
						
							|  |  |  | 		unless a video is present and visible...  --> | 
					
						
							| 
									
										
										
										
											2020-08-30 23:20:34 +03:00
										 |  |  | <video style="display:block; position:absolute; width:1px; height:1px; top:0px; left:0px" tabindex="-1"> | 
					
						
							|  |  |  | 	<source src="data/blank.mp4" type="video/mp4"> | 
					
						
							|  |  |  | </video> | 
					
						
							| 
									
										
										
										
											2020-12-12 05:13:02 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-12-11 06:24:22 +03:00
										 |  |  | <!-- XXX STUB: this lives in css/filters.svg but Chrome refuses to reference 
 | 
					
						
							|  |  |  | 		it's internals from the file:// protocol...  --> | 
					
						
							| 
									
										
										
										
											2018-11-10 04:41:11 +03:00
										 |  |  | <svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="0%" height="0%" class="svg-filters"> | 
					
						
							|  |  |  | 	<!-- edge detect --> | 
					
						
							|  |  |  | 	<filter id="EdgeDetect"> | 
					
						
							| 
									
										
										
										
											2020-12-11 06:24:22 +03:00
										 |  |  | 		<!--feConvolveMatrix order="3 3" preserveAlpha="true" divisor="1" bias="-1.4" kernelMatrix="-1 -1 -1 -1 9 -1 -1 -1 -1"/--> | 
					
						
							| 
									
										
										
										
											2018-11-10 04:41:11 +03:00
										 |  |  | 		<feConvolveMatrix order="3 3" preserveAlpha="true" kernelMatrix="-1 -1 -1 -1 8 -1 -1 -1 -1"/> | 
					
						
							|  |  |  | 	</filter> | 
					
						
							| 
									
										
										
										
											2018-11-10 04:01:53 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-12-11 06:24:22 +03:00
										 |  |  | 	<!-- shadows and highlights 
 | 
					
						
							| 
									
										
										
										
											2020-12-14 20:06:58 +03:00
										 |  |  | 		gradient map: [blue 0-5% black 93-96% white]  | 
					
						
							| 
									
										
										
										
											2020-12-11 06:24:22 +03:00
										 |  |  | 		via: https://justcode.today/filters/ --> | 
					
						
							| 
									
										
										
										
											2020-12-14 20:06:58 +03:00
										 |  |  | 	<!-- NOTE: not sure about the tail end here (white zone) might be a 
 | 
					
						
							|  |  |  | 			bit too flat... --> | 
					
						
							| 
									
										
										
										
											2020-12-11 06:24:22 +03:00
										 |  |  | 	<filter id="ShadowsAndHilights"> | 
					
						
							|  |  |  | 		<fecolormatrix type="saturate" values="0" /> | 
					
						
							|  |  |  | 		<feComponentTransfer color-interpolation-filters="sRGB" result="cutoff"> | 
					
						
							| 
									
										
										
										
											2020-12-14 20:06:58 +03:00
										 |  |  | 			<feFuncR type="table" tableValues=" | 
					
						
							|  |  |  | 				0 0 0 0 0 0 0 0 0 0  | 
					
						
							|  |  |  | 				0 0 0 0 0 0 0 0 0 0  | 
					
						
							|  |  |  | 				0 0 0 0 0 0 0 0 0 0  | 
					
						
							|  |  |  | 				0 0 0 0 0 0 0 0 0 0  | 
					
						
							|  |  |  | 				0 0 0 0 0 0 0 0 0 0  | 
					
						
							|  |  |  | 				0 0 0 0 0 0 0 0 0 0  | 
					
						
							|  |  |  | 				0 0 0 0 0 0 0 0 0 0  | 
					
						
							|  |  |  | 				0 0 0 0 0 0 0 0 0 0  | 
					
						
							|  |  |  | 				0 0 0 0 0 0 0 0 0 0  | 
					
						
							|  |  |  | 				0 0 0 0 0.33 0.67 1 1 1 1" /> | 
					
						
							|  |  |  | 			<feFuncG type="table" tableValues=" | 
					
						
							|  |  |  | 				0 0 0 0 0 0 0 0 0 0  | 
					
						
							|  |  |  | 				0 0 0 0 0 0 0 0 0 0  | 
					
						
							|  |  |  | 				0 0 0 0 0 0 0 0 0 0  | 
					
						
							|  |  |  | 				0 0 0 0 0 0 0 0 0 0  | 
					
						
							|  |  |  | 				0 0 0 0 0 0 0 0 0 0  | 
					
						
							|  |  |  | 				0 0 0 0 0 0 0 0 0 0  | 
					
						
							|  |  |  | 				0 0 0 0 0 0 0 0 0 0  | 
					
						
							|  |  |  | 				0 0 0 0 0 0 0 0 0 0  | 
					
						
							|  |  |  | 				0 0 0 0 0 0 0 0 0 0  | 
					
						
							|  |  |  | 				0 0 0 0 0.33 0.67 1 1 1 1" /> | 
					
						
							|  |  |  | 			<feFuncB type="table" tableValues=" | 
					
						
							|  |  |  | 				1 0.8 0.6 0.4 0.2 0 0 0 0 0  | 
					
						
							|  |  |  | 				0 0 0 0 0 0 0 0 0 0  | 
					
						
							|  |  |  | 				0 0 0 0 0 0 0 0 0 0  | 
					
						
							|  |  |  | 				0 0 0 0 0 0 0 0 0 0  | 
					
						
							|  |  |  | 				0 0 0 0 0 0 0 0 0 0  | 
					
						
							|  |  |  | 				0 0 0 0 0 0 0 0 0 0  | 
					
						
							|  |  |  | 				0 0 0 0 0 0 0 0 0 0  | 
					
						
							|  |  |  | 				0 0 0 0 0 0 0 0 0 0  | 
					
						
							|  |  |  | 				0 0 0 0 0 0 0 0 0 0  | 
					
						
							|  |  |  | 				0 0 0 0 0.33 0.67 1 1 1 1"/> | 
					
						
							| 
									
										
										
										
											2020-12-11 06:24:22 +03:00
										 |  |  | 		</feComponentTransfer> | 
					
						
							|  |  |  | 		<feBlend mode="difference" in="SourceGraphic" in2="cutoff"/> | 
					
						
							|  |  |  | 	</filter> | 
					
						
							| 
									
										
										
										
											2014-10-17 16:55:31 +04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-12-11 06:24:22 +03:00
										 |  |  | 	<!-- gamma shadows --> | 
					
						
							| 
									
										
										
										
											2020-12-14 20:06:58 +03:00
										 |  |  | 	<!-- XXX should this be gamma or a transfer function?? --> | 
					
						
							| 
									
										
										
										
											2020-12-11 06:24:22 +03:00
										 |  |  | 	<filter id="GammaShadows"> | 
					
						
							|  |  |  | 		<feComponentTransfer color-interpolation-filters="sRGB"> | 
					
						
							|  |  |  | 			<feFuncR type="gamma" exponent="0.3" amplitude="1.0" offset="0"></feFuncR> | 
					
						
							|  |  |  | 			<feFuncG type="gamma" exponent="0.3" amplitude="1.0" offset="0"></feFuncG> | 
					
						
							|  |  |  | 			<feFuncB type="gamma" exponent="0.3" amplitude="1.0" offset="0"></feFuncB> | 
					
						
							|  |  |  | 		</feComponentTransfer> | 
					
						
							|  |  |  | 	</filter> | 
					
						
							|  |  |  | </svg> | 
					
						
							| 
									
										
										
										
											2014-07-20 02:25:36 +04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-11-21 23:53:55 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-12-11 06:24:22 +03:00
										 |  |  | <!-- The Viewer block (see: imagegrid/ribbons.js) --> | 
					
						
							| 
									
										
										
										
											2016-07-03 02:21:33 +03:00
										 |  |  | <div class="viewer gray marks-visible" tabindex="0"></div> | 
					
						
							| 
									
										
										
										
											2014-07-20 02:25:36 +04:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-12-14 20:06:58 +03:00
										 |  |  | <!-- vim:set ts=4 sw=4 spell nowrap : --> | 
					
						
							| 
									
										
										
										
											2014-07-20 02:25:36 +04:00
										 |  |  | </body> | 
					
						
							|  |  |  | </html> |