[planet-web] And javascript paths as well
- From: Andrea Veri <averi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [planet-web] And javascript paths as well
- Date: Fri, 30 Aug 2019 08:09:41 +0000 (UTC)
commit ec90807ad9d283c151b01bd6773d80e8eab7554f
Author: Andrea Veri <averi redhat com>
Date: Fri Aug 30 10:09:37 2019 +0200
And javascript paths as well
themes/gnome-gr/index-2.0.html.tmpl | 4 ++--
themes/gnome-gr/index-regular.html.tmpl | 4 ++--
themes/gnome-gr/index.html.tmpl | 4 ++--
themes/gnome-gr/mobile.html.tmpl | 4 ++--
themes/gnome-gr/simple.html.tmpl | 4 ++--
web/gnome-gr/js/jquery.cookie.min.js | 1 +
web/gnome-gr/js/jquery.lazyload.min.js | 1 +
7 files changed, 12 insertions(+), 10 deletions(-)
---
diff --git a/themes/gnome-gr/index-2.0.html.tmpl b/themes/gnome-gr/index-2.0.html.tmpl
index f8a558e..4d84d10 100644
--- a/themes/gnome-gr/index-2.0.html.tmpl
+++ b/themes/gnome-gr/index-2.0.html.tmpl
@@ -15,7 +15,7 @@
<link rel="stylesheet" href="http://blogs.gnome.org/wp-content/mu-plugins/bug-links/bug-links.css"
type="text/css">
<script type="text/javascript"
src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>
- <script type="text/javascript" src="https://planet.gnome.org/jquery.lazyload.min.js"></script>
+ <script type="text/javascript" src="https://planet.gnome.org/js/jquery.lazyload.min.js"></script>
<script type="text/javascript"><!-- $(function(){ $('.post img').lazyload(); }); --></script>
</head>
@@ -157,7 +157,7 @@ Hosted by <a href="http://www.redhat.com/">Red Hat</a>.</p>
</div> <!-- /page -->
- <script type="text/javascript" src="https://planet.gnome.org/jquery.cookie.min.js"></script>
+ <script type="text/javascript" src="https://planet.gnome.org/js/jquery.cookie.min.js"></script>
<script type="text/javascript">
function toggleFeeds() {
$("#feedlist").slideToggle(function() {
diff --git a/themes/gnome-gr/index-regular.html.tmpl b/themes/gnome-gr/index-regular.html.tmpl
index efd7a9d..b2eb1e1 100644
--- a/themes/gnome-gr/index-regular.html.tmpl
+++ b/themes/gnome-gr/index-regular.html.tmpl
@@ -142,7 +142,7 @@
<script type="text/javascript"
src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>
- <script type="text/javascript" src="https://planet.gnome.org/jquery.lazyload.min.js"></script>
+ <script type="text/javascript" src="https://planet.gnome.org/js/jquery.lazyload.min.js"></script>
<script type="text/javascript"><!-- $(function(){ $('.post img').lazyload(); }); --></script>
</head>
@@ -267,7 +267,7 @@ Hosted by <a href="http://www.redhat.com/">Red Hat</a>.</p>
</div> <!-- /page -->
- <script type="text/javascript" src="https://planet.gnome.org/jquery.cookie.min.js"></script>
+ <script type="text/javascript" src="https://planet.gnome.org/js/jquery.cookie.min.js"></script>
<script type="text/javascript">
function toggleFeeds() {
$("#feedlist").slideToggle(function() {
diff --git a/themes/gnome-gr/index.html.tmpl b/themes/gnome-gr/index.html.tmpl
index a7b1be2..ec5ead7 100644
--- a/themes/gnome-gr/index.html.tmpl
+++ b/themes/gnome-gr/index.html.tmpl
@@ -18,7 +18,7 @@
<link rel="stylesheet" href="https://blogs.gnome.org/wp-content/mu-plugins/bug-links/bug-links.css"
type="text/css">
<script type="text/javascript"
src="https://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>
- <script type="text/javascript" src="https://planet.gnome.org/jquery.lazyload.min.js"></script>
+ <script type="text/javascript" src="https://planet.gnome.org/js/jquery.lazyload.min.js"></script>
<script type="text/javascript"><!-- $(function(){ $('.post img').lazyload(); }); --></script>
</head>
@@ -144,7 +144,7 @@ Hosted by <a href="http://www.redhat.com/">Red Hat</a>.</p>
</div> <!-- /page -->
- <script type="text/javascript" src="https://planet.gnome.org/jquery.cookie.min.js"></script>
+ <script type="text/javascript" src="https://planet.gnome.org/js/jquery.cookie.min.js"></script>
<script type="text/javascript">
function toggleFeeds() {
$("#feedlist").slideToggle(function() {
diff --git a/themes/gnome-gr/mobile.html.tmpl b/themes/gnome-gr/mobile.html.tmpl
index f95f7b4..45c0873 100644
--- a/themes/gnome-gr/mobile.html.tmpl
+++ b/themes/gnome-gr/mobile.html.tmpl
@@ -143,7 +143,7 @@
<script type="text/javascript"
src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>
- <script type="text/javascript" src="https://planet.gnome.org/jquery.lazyload.min.js"></script>
+ <script type="text/javascript" src="https://planet.gnome.org/js/jquery.lazyload.min.js"></script>
<script type="text/javascript"><!-- $(function(){ $('.post img').lazyload(); }); --></script>
</head>
@@ -269,7 +269,7 @@ Hosted by <a href="http://www.redhat.com/">Red Hat</a>.</p>
</div> <!-- /page -->
- <script type="text/javascript" src="https://planet.gnome.org/jquery.cookie.min.js"></script>
+ <script type="text/javascript" src="https://planet.gnome.org/js/jquery.cookie.min.js"></script>
<script type="text/javascript">
function toggleFeeds() {
$("#feedlist").slideToggle(function() {
diff --git a/themes/gnome-gr/simple.html.tmpl b/themes/gnome-gr/simple.html.tmpl
index d1a5b23..bdeb49a 100644
--- a/themes/gnome-gr/simple.html.tmpl
+++ b/themes/gnome-gr/simple.html.tmpl
@@ -18,7 +18,7 @@
<link rel="stylesheet" href="https://blogs.gnome.org/wp-content/mu-plugins/bug-links/bug-links.css"
type="text/css">
<script type="text/javascript"
src="https://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>
- <script type="text/javascript" src="https://planet.gnome.org/jquery.lazyload.min.js"></script>
+ <script type="text/javascript" src="https://planet.gnome.org/js/jquery.lazyload.min.js"></script>
<script type="text/javascript"><!-- $(function(){ $('.post img').lazyload(); }); --></script>
</head>
@@ -140,7 +140,7 @@ Hosted by <a href="http://www.redhat.com/">Red Hat</a>.</p>
</div> <!-- /page -->
- <script type="text/javascript" src="https://planet.gnome.org/jquery.cookie.min.js"></script>
+ <script type="text/javascript" src="https://planet.gnome.org/js/jquery.cookie.min.js"></script>
<script type="text/javascript">
function toggleFeeds() {
$("#feedlist").slideToggle(function() {
diff --git a/web/gnome-gr/js/jquery.cookie.min.js b/web/gnome-gr/js/jquery.cookie.min.js
new file mode 100644
index 0000000..aab4864
--- /dev/null
+++ b/web/gnome-gr/js/jquery.cookie.min.js
@@ -0,0 +1 @@
+jQuery.cookie=function(B,I,L){if(typeof I!="undefined"){L=L||{};if(I===null){I="";L.expires=-1}var
E="";if(L.expires&&(typeof L.expires=="number"||L.expires.toUTCString)){var F;if(typeof
L.expires=="number"){F=new Date();F.setTime(F.getTime()+(L.expires*24*60*60*1000))}else{F=L.expires}E=";
expires="+F.toUTCString()}var K=L.path?"; path="+(L.path):"";var G=L.domain?"; domain="+(L.domain):"";var
A=L.secure?"; secure":"";document.cookie=[B,"=",encodeURIComponent(I),E,K,G,A].join("")}else{var
D=null;if(document.cookie&&document.cookie!=""){var J=document.cookie.split(";");for(var
H=0;H<J.length;H++){var
C=jQuery.trim(J[H]);if(C.substring(0,B.length+1)==(B+"=")){D=decodeURIComponent(C.substring(B.length+1));break}}}return
D}};
\ No newline at end of file
diff --git a/web/gnome-gr/js/jquery.lazyload.min.js b/web/gnome-gr/js/jquery.lazyload.min.js
new file mode 100644
index 0000000..1193d0c
--- /dev/null
+++ b/web/gnome-gr/js/jquery.lazyload.min.js
@@ -0,0 +1 @@
+(function(a){a.fn.lazyload=function(c){var
d={threshold:0,failurelimit:0,event:"scroll",effect:"show",container:window};if(c){a.extend(d,c)}var
b=this;if("scroll"==d.event){a(d.container).bind("scroll",function(g){var
e=0;b.each(function(){if(!a.belowthefold(this,d)&&!a.rightoffold(this,d)){a(this).trigger("appear")}else{if(e++>d.failurelimit){return
false}}});var f=a.grep(b,function(h){return !h.loaded});b=a(f)})}return this.each(function(){var
e=this;a(e).attr("original",a(e).attr("src"));if("scroll"!=d.event||a.belowthefold(e,d)||a.rightoffold(e,d)){if(d.placeholder){a(e).attr("src",d.placeholder)}else{a(e).removeAttr("src")}e.loaded=false}else{e.loaded=true}a(e).one("appear",function(){if(!this.loaded){a("<img
/>").bind("load",function(){a(e).hide().attr("src",a(e).attr("original"))[d.effect](d.effectspeed);e.loaded=true}).attr("src",a(e).attr("original"))}});if("scroll"!=d.event){a(e).bind(d.event,function(f){if(!e.loaded){a(e).trigger("appear")}})}})};a.belowthefold=fu
nction(c
,d){if(d.container===undefined||d.container===window){var
b=a(window).height()+a(window).scrollTop()}else{var
b=a(d.container).offset().top+a(d.container).height()}return
b<=a(c).offset().top-d.threshold};a.rightoffold=function(c,d){if(d.container===undefined||d.container===window){var
b=a(window).width()+a(window).scrollLeft()}else{var
b=a(d.container).offset().left+a(d.container).width()}return
b<=a(c).offset().left-d.threshold};a.extend(a.expr[":"],{"below-the-fold":"$.belowthefold(a, {threshold : 0,
container: window})","above-the-fold":"!$.belowthefold(a, {threshold : 0, container:
window})","right-of-fold":"$.rightoffold(a, {threshold : 0, container:
window})","left-of-fold":"!$.rightoffold(a, {threshold : 0, container: window})"})})(jQuery);
\ No newline at end of file
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]