From 9fd5ca2ec2955ee29404be1a39ddd9affcd0c78f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Gro=CC=88nke?= Date: Sat, 19 Jan 2013 16:30:42 +0100 Subject: jQuery latest * jQuery 1.9.0 * jQuery-UI v1.9.2 * jQuery.fn.live > jQuery.fn.on * jQuery.fn.browser replacement (jquery.mb.browser.js) --- lib/scripts/jquery/update.sh | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100755 lib/scripts/jquery/update.sh (limited to 'lib/scripts/jquery/update.sh') diff --git a/lib/scripts/jquery/update.sh b/lib/scripts/jquery/update.sh deleted file mode 100755 index fde46f4d7..000000000 --- a/lib/scripts/jquery/update.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh -# -# This script loads the latest jQuery and jQuery-UI 1.* versions from Google's CDN -# -# It also loads the 'smoothness' jQuery-UI theme and all referenced images. -# -# @author Andreas Gohr -# @link https://code.google.com/apis/libraries/devguide.html#jquery - -# load jQuery -wget -nv https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js -O jquery.min.js -wget -nv https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js -O jquery.js - -# load jQuery-UI -wget -nv https://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js -O jquery-ui.min.js -wget -nv https://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.js -O jquery-ui.js - -# load the smoothness theme -mkdir -p jquery-ui-theme/images -wget -nv https://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/smoothness/jquery-ui.css -O jquery-ui-theme/smoothness.css -images=`gawk 'match($0, /url\((images\/[^\)]+)\)/, m) { print m[1] }' jquery-ui-theme/smoothness.css` -for img in $images -do - wget -nv https://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/smoothness/$img -O jquery-ui-theme/$img -done - -# remove font family declarations from smoothness CSS -sed -i "s/font-family:[^;]*; \?//" jquery-ui-theme/smoothness.css -- cgit v1.2.3 From 298dbae2a9ba56168aa0aa6bfc9a3df2661f6f11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Gro=CC=88nke?= Date: Sat, 19 Jan 2013 18:13:12 +0100 Subject: jQuery update.sh * OSX compatible --- lib/scripts/jquery/update.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 lib/scripts/jquery/update.sh (limited to 'lib/scripts/jquery/update.sh') diff --git a/lib/scripts/jquery/update.sh b/lib/scripts/jquery/update.sh new file mode 100755 index 000000000..9e1f57dd3 --- /dev/null +++ b/lib/scripts/jquery/update.sh @@ -0,0 +1,29 @@ +#!/bin/sh +# +# This script loads the latest jQuery and jQuery-UI 1.* versions from Google's CDN +# +# It also loads the 'smoothness' jQuery-UI theme and all referenced images. +# +# @author Andreas Gohr +# @link https://code.google.com/apis/libraries/devguide.html#jquery + +# load jQuery +wget -nv https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js -O jquery.min.js +wget -nv https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js -O jquery.js + +# load jQuery-UI +wget -nv https://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js -O jquery-ui.min.js +wget -nv https://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.js -O jquery-ui.js + +# load the smoothness theme +mkdir -p jquery-ui-theme/images +wget -nv https://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/smoothness/jquery-ui.css -O jquery-ui-theme/smoothness.css.ori +images=`gawk 'match($0, /url\((images\/[^\)]+)\)/, m) { print m[1] }' jquery-ui-theme/smoothness.css` +for img in $images +do + wget -nv https://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/smoothness/$img -O jquery-ui-theme/$img +done + +# remove font family declarations from smoothness CSS +cat jquery-ui-theme/smoothness.css.ori | sed "s/font-family:[^;]*;//" >> jquery-ui-theme/smoothness.css +rm jquery-ui-theme/smoothness.css.ori \ No newline at end of file -- cgit v1.2.3 From 20996c3c47ebafd29ce608ab940596be7adb4a73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Gro=CC=88nke?= Date: Sat, 19 Jan 2013 20:29:15 +0100 Subject: update.sh must overwrite stylesheet --- lib/scripts/jquery/update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/scripts/jquery/update.sh') diff --git a/lib/scripts/jquery/update.sh b/lib/scripts/jquery/update.sh index 9e1f57dd3..bea9206db 100755 --- a/lib/scripts/jquery/update.sh +++ b/lib/scripts/jquery/update.sh @@ -25,5 +25,5 @@ do done # remove font family declarations from smoothness CSS -cat jquery-ui-theme/smoothness.css.ori | sed "s/font-family:[^;]*;//" >> jquery-ui-theme/smoothness.css +cat jquery-ui-theme/smoothness.css.ori | sed "s/font-family:[^;]*;//" > jquery-ui-theme/smoothness.css rm jquery-ui-theme/smoothness.css.ori \ No newline at end of file -- cgit v1.2.3 From 930913b3152f64b46cbc08adc1f899bf37bb3d3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Gro=CC=88nke?= Date: Sun, 20 Jan 2013 22:52:18 +0100 Subject: update.js applied --- lib/scripts/jquery/update.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'lib/scripts/jquery/update.sh') diff --git a/lib/scripts/jquery/update.sh b/lib/scripts/jquery/update.sh index bea9206db..3bc2c761e 100755 --- a/lib/scripts/jquery/update.sh +++ b/lib/scripts/jquery/update.sh @@ -5,6 +5,7 @@ # It also loads the 'smoothness' jQuery-UI theme and all referenced images. # # @author Andreas Gohr +# @author Stefan Grönke # @link https://code.google.com/apis/libraries/devguide.html#jquery # load jQuery @@ -17,13 +18,9 @@ wget -nv https://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.js -O jq # load the smoothness theme mkdir -p jquery-ui-theme/images -wget -nv https://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/smoothness/jquery-ui.css -O jquery-ui-theme/smoothness.css.ori +wget -nv -qO- https://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/smoothness/jquery-ui.css | sed "s/font-family:[^;]*;//" > jquery-ui-theme/smoothness.css images=`gawk 'match($0, /url\((images\/[^\)]+)\)/, m) { print m[1] }' jquery-ui-theme/smoothness.css` for img in $images do wget -nv https://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/smoothness/$img -O jquery-ui-theme/$img -done - -# remove font family declarations from smoothness CSS -cat jquery-ui-theme/smoothness.css.ori | sed "s/font-family:[^;]*;//" > jquery-ui-theme/smoothness.css -rm jquery-ui-theme/smoothness.css.ori \ No newline at end of file +done \ No newline at end of file -- cgit v1.2.3 From bad7fb67d7e2a6939d7e6de1779100970d41b600 Mon Sep 17 00:00:00 2001 From: Michael Hamann Date: Sat, 30 Mar 2013 23:31:41 +0100 Subject: Add missing jQuery-UI image and update update script For just one image another syntax was used, this fixes the update script to also fetch this image. --- lib/scripts/jquery/update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/scripts/jquery/update.sh') diff --git a/lib/scripts/jquery/update.sh b/lib/scripts/jquery/update.sh index 3bc2c761e..749b0f4e2 100755 --- a/lib/scripts/jquery/update.sh +++ b/lib/scripts/jquery/update.sh @@ -19,7 +19,7 @@ wget -nv https://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.js -O jq # load the smoothness theme mkdir -p jquery-ui-theme/images wget -nv -qO- https://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/smoothness/jquery-ui.css | sed "s/font-family:[^;]*;//" > jquery-ui-theme/smoothness.css -images=`gawk 'match($0, /url\((images\/[^\)]+)\)/, m) { print m[1] }' jquery-ui-theme/smoothness.css` +images=`gawk 'match($0, /url\("?(images\/[^\)"]+)"?\)/, m) { print m[1] }' jquery-ui-theme/smoothness.css` for img in $images do wget -nv https://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/smoothness/$img -O jquery-ui-theme/$img -- cgit v1.2.3