diff --git a/.gitignore b/.gitignore index 25ab2bc..f91ec08 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ *.log js/mobile.js js/init_plot.js +js/version.json css/mobile.css cache.manifest -tiles/ +tiles/ \ No newline at end of file diff --git a/build.sh b/build.sh index 1b07ff8..1589052 100755 --- a/build.sh +++ b/build.sh @@ -35,6 +35,9 @@ java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations - java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge _jquery.flot.js >> init_plot.js java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge plot_config.js >> init_plot.js +# create version check file +echo "{\"build_date\": \"$BUILD_DATE\", \"version\": \"$VERSION\", \"refresh\": 86400}" > version.json + cd .. echo "Done!" echo -n "Generate cache.manifest..." diff --git a/css/layout.css b/css/layout.css index 009cdaf..2b915f2 100644 --- a/css/layout.css +++ b/css/layout.css @@ -164,3 +164,19 @@ header h1{ font-weight: normal; font-style: normal; } */ + +#reload_warning { + position: absolute; + left: 20px; + bottom: 20px; + font-size: 12; + width: 300px; + height: auto; + background-color: white; + z-index: 10; + box-shadow: rgba(9, 20, 66, 0.25) 0px 20px 32px -8px; + border: #ddd solid; + padding: 10px; + border-width: 1px; + display: none; +} \ No newline at end of file diff --git a/index.html b/index.html index df91aaa..1eeadfd 100644 --- a/index.html +++ b/index.html @@ -31,7 +31,6 @@ -