Skip to content

Commit

Permalink
Fix #5, Fix #1 Fix #7
Browse files Browse the repository at this point in the history
  • Loading branch information
niksmac committed Dec 20, 2015
1 parent 5a55760 commit 44d8133
Show file tree
Hide file tree
Showing 68 changed files with 1,521 additions and 342 deletions.
2 changes: 1 addition & 1 deletion 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<!doctype html>
<html class="no-js" lang="">
{% include head.html %}
<link rel="stylesheet" href="/public/css/404.css" charset="utf-8">
<link rel="stylesheet" href="/public/cssfull/404.css" charset="utf-8">
<body class="ui container text glitch">


Expand Down
6 changes: 5 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ title: Customer Loyalty &amp; Retention Management Software
email: hello@pegke.com
description: Customer Loyalty &amp; Retention Management Software, integrates with merchant POS systems to give consumers a single identity to earn business-specific rewards
keywords: customer loylaty, loyalty software, retail loyalty program, loyalty program, reward points, customer loylaty program, retention management
productname: Pegke Loyalty
productname: Pegke Loyalty &#8482;
baseurl: "" # the subpath of your site, e.g. /blog
url: "http://beta.pegke.com" # the base hostname & protocol for your site
lighturl: http://lightrains.com
Expand All @@ -29,6 +29,10 @@ dashboard:
api_base: https://pegke.com/v1/
app_down: https://pegke.com/apps

apps:
android: https://pegke.com/
apple: https://pegke.com/
windows: https://pegke.com/
# Build settings
markdown: kramdown
encoding: UTF-8
Expand Down
5 changes: 5 additions & 0 deletions _includes/footer.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<a href="#top" class="go-top"><i class="eject large icon"></i></a>
<div class="ui inverted vertical footer segment">
<div class="ui container">
<div class="ui stackable inverted divided equal height stackable grid">
Expand Down Expand Up @@ -49,4 +50,8 @@ <h4 class="ui inverted header">Social</h4>
</div>
</div>
</div>
<div class="ui left aligned container grey small">
<div class="ui divider hidden"></div>
&copy; 2016 - <abbr title="{{ site.title }}">{{ site.productname }}</abbr>
</div>
</div>
161 changes: 109 additions & 52 deletions _includes/footerscripts.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,27 @@

{% if page.permalink == 'index.html' %}
<script>
head.load(
"{{ "/bower_components/semantic/dist/semantic.min.css" | prepend: site.baseurl }}",
"{{ "/bower_components/jquery/dist/jquery.min.js" | prepend: site.baseurl }}",
"{{ "/bower_components/semantic/dist/semantic.min.js" | prepend: site.baseurl }}",
"{{ "/public/css/style.min.css" | prepend: site.baseurl }}",
"{{ "/bower_components/fullpage.js/jquery.fullPage.min.js" | prepend: site.baseurl }}",
"{{ "/bower_components/fullpage.js/vendors/jquery.slimscroll.min.js" | prepend: site.baseurl }}",
"{{ "/bower_components/fullpage.js/jquery.fullPage.css" | prepend: site.baseurl }}"
);
head.ready(function () {
if(! head.mobile) {
{% if page.permalink == 'index.html' %}
<script>
head.load(
"{{ "/bower_components/semantic/dist/semantic.min.css" | prepend: site.baseurl }}",
"{{ "/public/css/css.combined.min.css" | prepend: site.baseurl }}",
"{{ "/bower_components/jquery/dist/jquery.min.js" | prepend: site.baseurl }}",
"{{ "/bower_components/semantic/dist/semantic.min.js" | prepend: site.baseurl }}",
"{{ "/bower_components/fullpage.js/jquery.fullPage.min.js" | prepend: site.baseurl }}",
"{{ "/bower_components/fullpage.js/vendors/jquery.slimscroll.min.js" | prepend: site.baseurl }}"
);
head.ready(function () {

$('#header').removeClass('box-shadow');

$(window).scroll(function() {
if ($(this).scrollTop() > 400) {
$('#header').addClass('box-shadow');
} else {
$('#header').removeClass('box-shadow');
}
});

if(! head.mobile) {
$('#fullpage').fullpage({
animateAnchor: true,
scrollOverflow: true,
Expand All @@ -21,44 +31,44 @@
sectionsColor: ['#000', '#F8E985', '#DEEEEB', 'ECF2F2', '#222222'],
});
}
});
</script>
{% elsif page.permalink == '/api/' %}
<link rel="dns-prefetch" href="https://cdn.jsdelivr.net">
<script>
head.load(
"{{ "/bower_components/semantic/dist/semantic.min.css" | prepend: site.baseurl }}",
"{{ "/bower_components/jquery/dist/jquery.min.js" | prepend: site.baseurl }}",
"{{ "/bower_components/semantic/dist/semantic.min.js" | prepend: site.baseurl }}",
"{{ "/public/js/scrollspy.js" | prepend: site.baseurl }}",
"https://cdn.jsdelivr.net/highlight.js/9.0.0/styles/default.min.css",
"https://cdn.jsdelivr.net/highlight.js/9.0.0/highlight.min.js",
"{{ "/public/css/style.min.css" | prepend: site.baseurl }}",
);
head.ready(function () {
$(document).ready(function() {
$(".hashnav").scrollspy();
$('.hashnav a').click(function() {
$('.hashnav a').removeClass('active');
$(this).addClass('active');
$('html, body').animate({
scrollTop: $($(this).attr('href')).offset().top - 80
}, 200);
});
});
</script>
{% elsif page.permalink == '/api/' %}
<link rel="dns-prefetch" href="https://cdn.jsdelivr.net">
<script>
head.load(
"{{ "/bower_components/semantic/dist/semantic.min.css" | prepend: site.baseurl }}",
"{{ "/bower_components/jquery/dist/jquery.min.js" | prepend: site.baseurl }}",
"{{ "/bower_components/semantic/dist/semantic.min.js" | prepend: site.baseurl }}",
"{{ "/public/js/scrollspy.js" | prepend: site.baseurl }}",
"https://cdn.jsdelivr.net/highlight.js/9.0.0/styles/default.min.css",
"https://cdn.jsdelivr.net/highlight.js/9.0.0/highlight.min.js",
"{{ "/public/css/style.min.css" | prepend: site.baseurl }}"
);
head.ready(function () {
$(document).ready(function() {
$(".hashnav").scrollspy();
$('.hashnav a').click(function() {
$('.hashnav a').removeClass('active');
$(this).addClass('active');
$('html, body').animate({
scrollTop: $($(this).attr('href')).offset().top - 80
}, 200);
});
hljs.initHighlightingOnLoad();
});
</script>
{% else %}
<script>
head.load(
"{{ "/bower_components/semantic/dist/semantic.min.css" | prepend: site.baseurl }}",
"{{ "/bower_components/jquery/dist/jquery.min.js" | prepend: site.baseurl }}",
"{{ "/bower_components/semantic/dist/semantic.min.js" | prepend: site.baseurl }}",
"{{ "/public/css/style.min.css" | prepend: site.baseurl }}"
);
</script>
{% endif %}
hljs.initHighlightingOnLoad();
});
</script>
{% else %}
<script>
head.load(
"{{ "/bower_components/semantic/dist/semantic.min.css" | prepend: site.baseurl }}",
"{{ "/bower_components/jquery/dist/jquery.min.js" | prepend: site.baseurl }}",
"{{ "/bower_components/semantic/dist/semantic.min.js" | prepend: site.baseurl }}",
"{{ "/public/css/style.min.css" | prepend: site.baseurl }}"
);
</script>
{% endif %}

<script type="text/javascript">
head.ready(function () {
Expand Down Expand Up @@ -91,10 +101,10 @@
});

$(window).scroll(function() {
if ($(this).scrollTop() > 200) {
$('.go-top').fadeIn(200);
if ($(this).scrollTop() > 400) {
$('.go-top').fadeIn(400);
} else {
$('.go-top').fadeOut(200);
$('.go-top').fadeOut(400);
}
});
$('.go-top').click(function(event) {
Expand Down Expand Up @@ -150,6 +160,13 @@
prompt: 'Your 10 digit Mobile Number'
}]
},
country: {
identifier: 'country',
rules: [{
type: 'empty',
prompt: 'Please chose your country'
}]
},
email: {
identifier: 'email',
rules: [{
Expand Down Expand Up @@ -222,6 +239,13 @@
.modal('show');
});

// $('#checkpoints').on('submit', function(e) {
// e.preventDefault();
// var el = $(this);
// $('#sbmit').addClass('loading');
// // el.addClass.attr('disabled', "true");
// });

$('#sg-signup').click(function() {
$(this).addClass('loading');
$('#sg-email').attr('disabled', "true");
Expand All @@ -234,6 +258,39 @@

});

$('#checkpoints')
.form({
fields: {
phone: {
identifier: 'phone',
rules: [{
type: 'empty',
}, {
type: 'exactLength[10]',
}, {
type: 'number',
}]
},
country: {
identifier: 'country',
rules: [{
type: 'empty',
prompt: 'Please chose your country'
}]
},
// dob: {
// identifier: 'dob',
// rules: [{
// type: 'empty',
// },
// {
// type: 'regExp[/^d{2}([./-])d{2}1d{4}$/]'
// }
// ]
// },
}
});

});
</script>
<script>(function(G,o,O,g,l){G.GoogleAnalyticsObject=O;G[O]||(G[O]=function(){(G[O].q=G[O].q||[]).push(arguments)});G[O].l=+new Date;g=o.createElement('script'),l=o.scripts[0];g.src='https://www.google-analytics.com/analytics.js';l.parentNode.insertBefore(g,l)}(this,document,'ga'));ga('create', 'UA-38015473-1', 'pegke.com');ga('require', 'displayfeatures');ga('set', '&uid', 0);ga('send', 'pageview')</script>
14 changes: 2 additions & 12 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">

<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}{% if page.permalink != 'index.html' %}{{ site.productname | prepend: ': ' }}{% endif %}</title>
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}{% if page.permalink != 'index.html' %}{{ site.productname | prepend: ' &#8226; ' }}{% endif %}</title>
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
<meta name="keywords" content="{% if page.keywords %}{{ page.keywords }} {% else %} {{ page.title | append: ', ' | append: site.keywords }} {% endif %}">

Expand All @@ -13,19 +13,10 @@
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="msapplication-tap-highlight" content="no">


<link rel="shortlink" href="http://bit.ly/pegkeweb">
<link rel="preload" href="{{ "/public/img/1.jpg" | prepend: site.baseurl }}">

<script>
var head_conf = {
screens : [],
screensCss: { "gt": false, "gte": false, "lt": false, "lte": false, "eq": false },
browsers : [],
browserCss: { "gt": false, "gte": false, "lt": false, "lte": false, "eq": false }
};
</script>
<script src="{{ "/bower_components/headjs/dist/1.0.0/head.min.js" | prepend: site.baseurl }}"></script>
<script src="{{ "/public/js/head.min.js" | prepend: site.baseurl }}"></script>

<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
<link rel="alternate" type="application/rss+xml" title="{{ site.productname }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}">
Expand All @@ -34,5 +25,4 @@

<!-- Favicons -->
{% include favicons.html %}

</head>
Loading

0 comments on commit 44d8133

Please sign in to comment.