diff --git a/admin/index.go b/admin/index.go index cd49d7dc..7cfeea3e 100644 --- a/admin/index.go +++ b/admin/index.go @@ -64,6 +64,21 @@ const indextpl = ` .col img { max-width: 100%; } + .circle-anim { + z-index:1; + border: black 1px solid; + border-radius: .5em; + margin-top: .4em; + margin-left: .5em; + height: 1em; + width: 1em; + transition: transform ease-in .7s; + transform: scale(1); + } + .circle-anim.play { + transform: scale(250); + opacity:0; + } @@ -109,6 +124,10 @@ const indextpl = ` +
+
+
+
Démarrage dans : diff --git a/admin/static/js/app.js b/admin/static/js/app.js index d3384b1c..bea958fd 100644 --- a/admin/static/js/app.js +++ b/admin/static/js/app.js @@ -450,7 +450,7 @@ angular.module("FICApp") }; }) - .run(function($rootScope, $http, $interval, Settings, $location) { + .run(function($rootScope, $http, $interval, $timeout, Settings, $location) { $rootScope.$location = $location; $rootScope.Utils = { keys : Object.keys @@ -491,6 +491,24 @@ angular.module("FICApp") }) }) } + + $rootScope.$on('$locationChangeStart', function(event, next, current) { + if($rootScope.staticFilesNeedUpdate) { + $timeout(function () { + document.getElementById("circle1").classList.add("play"); + }, 10); + $timeout(function () { + document.getElementById("circle1").classList.remove("play"); + }, 710); + + $timeout(function () { + document.getElementById("circle2").classList.add("play"); + }, 50); + $timeout(function () { + document.getElementById("circle2").classList.remove("play"); + }, 750); + } + }); }) .controller("VersionController", function($scope, Version) {