Changeset 408 for trunk


Ignore:
Timestamp:
Jan 27, 2020, 12:19:20 PM (4 years ago)
Author:
g7moreau
Message:
  • Add svn pan zoom and begin small switch map history
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/klask

    r407 r408  
    11#!/usr/bin/perl -w
    22#
    3 # Copyright (C) 2005-2019 Gabriel Moreau <Gabriel.Moreau(A)univ-grenoble-alpes.fr>
     3# Copyright (C) 2005-2020 Gabriel Moreau <Gabriel.Moreau(A)univ-grenoble-alpes.fr>
    44# License GNU GPL version 2 or later and Perl equivalent
    55#
     
    12331233   print <<'END';
    12341234klask - port and search manager for switches, map management
    1235 Copyright (C) 2005-2019 Gabriel Moreau <Gabriel.Moreau(A)univ-grenoble-alpes.fr>
     1235Copyright (C) 2005-2020 Gabriel Moreau <Gabriel.Moreau(A)univ-grenoble-alpes.fr>
    12361236License GNU GPL version 2 or later and Perl equivalent
    12371237END
     
    39163916License GNU GPL version 2 or later and Perl equivalent
    39173917
    3918 Copyright (C) 2005-2019 Gabriel Moreau <Gabriel.Moreau(A)univ-grenoble-alpes.fr>.
     3918Copyright (C) 2005-2020 Gabriel Moreau <Gabriel.Moreau(A)univ-grenoble-alpes.fr>.
  • trunk/push-web

    r372 r408  
    11#!/bin/bash
    22#
    3 # Copyright (C) 2005-2018 Gabriel Moreau <Gabriel.Moreau(A)univ-grenoble-alpes.fr>
     3# Copyright (C) 2005-2020 Gabriel Moreau <Gabriel.Moreau(A)univ-grenoble-alpes.fr>
    44# License GNU GPL version 2 or later
    55#
     
    4242
    4343LOCALTIME=$(date "+%Y-%m-%d %H:%M")
    44 
     44TIMEFILE=$(date "+%Y-%m-%d.%H-%M")
     45
     46CACHE_TIMEOUT=50
     47find ${TMP}/ -type f -a -mtime +${CACHE_TIMEOUT} -delete
    4548
    4649klask exportsw --format dot --modulo ${GRAPH_MODULO} --shift ${GRAPH_SHIFT} > ${TMP}/switch-map.txt.new
     
    6366 </noscript>
    6467 <script src="sorttable-klask.js"></script>
     68 <script src="svg-pan-zoom-klask.js"></script>
    6569 <script>
    6670function delayedRefresh() {
     
    215219   <a href="https://addons.mozilla.org/en-US/firefox/addon/image-zoom/">Image Zoom<a> plugin (or equivalent) installed.
    216220   </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>
    217229   <img class="map" src="switch-map.png">
    218230 </div>
     
    243255END
    244256
    245 cmp --silent ${TMP}/switch-map.txt.new ${TMP}/switch-map.txt || mv -f ${TMP}/switch-map.txt.new ${TMP}/switch-map.txt
     257cmp --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   }
    246261
    247262if [ "${REMOTE_SERVER}" = "localhost" ]
     
    249264   rsync --times \
    250265      /usr/share/klask/sorttable-klask.js \
     266      /usr/share/klask/svg-pan-zoom-klask.js \
    251267      /usr/share/klask/style-klask.css \
    252268      ${TMP}/index.html \
     
    262278   rsync --times \
    263279      /usr/share/klask/sorttable-klask.js \
     280      /usr/share/klask/svg-pan-zoom-klask.js \
    264281      /usr/share/klask/style-klask.css \
    265282      ${TMP}/index.html \
Note: See TracChangeset for help on using the changeset viewer.