Browse Source

Another try

redesign
Anxhelo Lushka 6 years ago
parent
commit
33358135dd
No known key found for this signature in database GPG Key ID: 86086158C83770F8
  1. 14
      index.html
  2. 4
      js/lazyload.js

14
index.html

@ -126,7 +126,7 @@ clients:
<div class="section-title"> <div class="section-title">
<div class="row"> <div class="row">
<div class="medium-10 medium-centered columns"> <div class="medium-10 medium-centered columns">
<img data-src="images/main/icon.svg" alt="" class="lazyload wow flipInY" data-wow-duration="2s" data-wow-delay="0.1s"> <img src="images/main/icon.svg" alt="" class="lazyload wow flipInY" data-wow-duration="2s" data-wow-delay="0.1s">
<div class="spacing"></div> <div class="spacing"></div>
<h2>Design, but Open</h2> <h2>Design, but Open</h2>
</div> </div>
@ -158,7 +158,7 @@ clients:
<div class='large-12 columns'> <div class='large-12 columns'>
<div class='clients'> <div class='clients'>
{% for client in page.clients %} {% for client in page.clients %}
<div><a href="{{client.url}}" target="blank"><img alt="" class="lazyload" data-src="{{site.baseurl}}/{{client.image}}" width="200px" height="120px"></a></div> <div><a href="{{client.url}}" target="blank"><img alt="" class="lazyload" src="{{site.baseurl}}/{{client.image}}" width="200px" height="120px"></a></div>
{% endfor %} {% endfor %}
</div> </div>
</div> </div>
@ -181,7 +181,7 @@ clients:
<div class="quote wow slideInLeft" data-wow-delay="{{ 0.25 | times:forloop.index0 }}s"> <div class="quote wow slideInLeft" data-wow-delay="{{ 0.25 | times:forloop.index0 }}s">
<div class="row"> <div class="row">
<div class="small-3 columns"> <div class="small-3 columns">
<img class="lazyload" data-src="{{testimonial.avatar}}" width="102px" height="102px" alt="author"> <img class="lazyload" src="{{testimonial.avatar}}" width="102px" height="102px" alt="author">
</div> </div>
<div class="small-9 columns"> <div class="small-9 columns">
<p>{{testimonial.content}}</p> <p>{{testimonial.content}}</p>
@ -196,7 +196,7 @@ clients:
<div class="quote reverse wow slideInRight" class="wow" data-wow-delay="{{ 0.25 | times:forloop.index0 }}s"> <div class="quote reverse wow slideInRight" class="wow" data-wow-delay="{{ 0.25 | times:forloop.index0 }}s">
<div class="row"> <div class="row">
<div class="small-3 columns"> <div class="small-3 columns">
<img class="lazyload" data-src="{{testimonial.avatar}}" width="102px" height="102px" alt="author"> <img class="lazyload" src="{{testimonial.avatar}}" width="102px" height="102px" alt="author">
</div> </div>
<div class="small-9 columns"> <div class="small-9 columns">
<p>{{testimonial.content}}</p> <p>{{testimonial.content}}</p>
@ -226,7 +226,7 @@ clients:
{% for work in page.works_left %} {% for work in page.works_left %}
<div class="work-wrapper"> <div class="work-wrapper">
<a href="{{work.link_to}}" class="work"> <a href="{{work.link_to}}" class="work">
<img data-src="{{site.url}}/{{work.image}}" alt="" class="lazyload"> <img src="{{site.url}}/{{work.image}}" alt="" class="lazyload">
<div class="info"> <div class="info">
<h3>{{work.title}}</h3> <h3>{{work.title}}</h3>
<p>{{work.categories}}</p> <p>{{work.categories}}</p>
@ -239,7 +239,7 @@ clients:
{% for work in page.works_middle %} {% for work in page.works_middle %}
<div class="work-wrapper"> <div class="work-wrapper">
<a href="{{work.link_to}}" class="work"> <a href="{{work.link_to}}" class="work">
<img data-src="{{site.url}}/{{work.image}}" alt="" class="lazyload"> <img src="{{site.url}}/{{work.image}}" alt="" class="lazyload">
<div class="info"> <div class="info">
<h3>{{work.title}}</h3> <h3>{{work.title}}</h3>
<p>{{work.categories}}</p> <p>{{work.categories}}</p>
@ -252,7 +252,7 @@ clients:
{% for work in page.works_right %} {% for work in page.works_right %}
<div class="work-wrapper"> <div class="work-wrapper">
<a href="{{work.link_to}}" class="work"> <a href="{{work.link_to}}" class="work">
<img data-src="{{site.url}}/{{work.image}}" alt="" class="lazyload"> <img src="{{site.url}}/{{work.image}}" alt="" class="lazyload">
<div class="info"> <div class="info">
<h3>{{work.title}}</h3> <h3>{{work.title}}</h3>
<p>{{work.categories}}</p> <p>{{work.categories}}</p>

4
js/lazyload.js

@ -26,7 +26,7 @@
"use strict"; "use strict";
const defaults = { const defaults = {
src: "data-src", src: "src",
srcset: "data-srcset", srcset: "data-srcset",
selector: ".lazyload" selector: ".lazyload"
}; };
@ -163,7 +163,7 @@
const $ = root.jQuery; const $ = root.jQuery;
$.fn.lazyload = function (options) { $.fn.lazyload = function (options) {
options = options || {}; options = options || {};
options.attribute = options.attribute || "data-src"; options.attribute = options.attribute || "src";
new LazyLoad($.makeArray(this), options); new LazyLoad($.makeArray(this), options);
return this; return this;
}; };

Loading…
Cancel
Save