Changeset 408 for trunk/push-web
- Timestamp:
- Jan 27, 2020, 12:19:20 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/push-web
r372 r408 1 1 #!/bin/bash 2 2 # 3 # Copyright (C) 2005-20 18Gabriel Moreau <Gabriel.Moreau(A)univ-grenoble-alpes.fr>3 # Copyright (C) 2005-2020 Gabriel Moreau <Gabriel.Moreau(A)univ-grenoble-alpes.fr> 4 4 # License GNU GPL version 2 or later 5 5 # … … 42 42 43 43 LOCALTIME=$(date "+%Y-%m-%d %H:%M") 44 44 TIMEFILE=$(date "+%Y-%m-%d.%H-%M") 45 46 CACHE_TIMEOUT=50 47 find ${TMP}/ -type f -a -mtime +${CACHE_TIMEOUT} -delete 45 48 46 49 klask exportsw --format dot --modulo ${GRAPH_MODULO} --shift ${GRAPH_SHIFT} > ${TMP}/switch-map.txt.new … … 63 66 </noscript> 64 67 <script src="sorttable-klask.js"></script> 68 <script src="svg-pan-zoom-klask.js"></script> 65 69 <script> 66 70 function delayedRefresh() { … … 215 219 <a href="https://addons.mozilla.org/en-US/firefox/addon/image-zoom/">Image Zoom<a> plugin (or equivalent) installed. 216 220 </p> 221 222 <embed type="image/svg+xml" src="switch-map.svg" id="my-embed-switch-map"/> 223 <script> 224 document.getElementById('my-embed-switch-map').addEventListener('load', function(){ 225 // Will get called after embed element was loaded 226 svgPanZoom(document.getElementById('my-embed-switch-map')); 227 }) 228 </script> 217 229 <img class="map" src="switch-map.png"> 218 230 </div> … … 243 255 END 244 256 245 cmp --silent ${TMP}/switch-map.txt.new ${TMP}/switch-map.txt || mv -f ${TMP}/switch-map.txt.new ${TMP}/switch-map.txt 257 cmp --silent ${TMP}/switch-map.txt.new ${TMP}/switch-map.txt || { 258 mv -f ${TMP}/switch-map.txt.new ${TMP}/switch-map.${TIMEFILE}.txt; 259 ln -sf ${TMP}/switch-map.${TIMEFILE}.txt ${TMP}/switch-map.txt 260 } 246 261 247 262 if [ "${REMOTE_SERVER}" = "localhost" ] … … 249 264 rsync --times \ 250 265 /usr/share/klask/sorttable-klask.js \ 266 /usr/share/klask/svg-pan-zoom-klask.js \ 251 267 /usr/share/klask/style-klask.css \ 252 268 ${TMP}/index.html \ … … 262 278 rsync --times \ 263 279 /usr/share/klask/sorttable-klask.js \ 280 /usr/share/klask/svg-pan-zoom-klask.js \ 264 281 /usr/share/klask/style-klask.css \ 265 282 ${TMP}/index.html \
Note: See TracChangeset
for help on using the changeset viewer.