I hereby claim:
- I am jaygreentree on github.
- I am jaygreentree (https://keybase.io/jaygreentree) on keybase.
- I have a public key ASCtp2Tc14orMttffoYQbw4I9z9YgNe8I5fsyaS5xcdR-wo
To claim this, I am signing this object:
jQuery(function() { | |
days = void 0; | |
hours = void 0; | |
minutes = void 0; | |
seconds = void 0; | |
intervalId = void 0; | |
return $.ajax({ | |
url: "/api/data.json", | |
dataType: "json", | |
success: function(data) { |
{% cache key:'ne-services' duration:'1800' %} | |
{% assign domain = "https://9embers.online.church" %} | |
{% assign jsonResults = '' %} | |
{% webrequest url:'{{domain}}/auth/guest' method:'POST' return:'auth' %} | |
{%- assign dateTimeNow = 'Now' | Date:'yyyy-MM-ddTHH:mm:ss zzz' %} | |
{%- capture body -%}{"operationName":"ServicesConnectionQuery","variables":{"limit":1,"from":"{{dateTimeNow}}"},"query":"query ServicesConnectionQuery($from: Timestamp, $limit: Int = 0) {currentOrganization { id servicesConnection(from: $from, limit: $limit) { services { id startTime scheduleTime endTime __typename } __typename } __typename }}"}{%- endcapture -%} | |
{% webrequest url:'{{domain}}/graphql' method:'POST' body:'{{body}}' requestcontenttype:'application/json' headers:'Authorization^Bearer {{auth.access_token}}' %} | |
{% assign jsonResults = results | ToJSON %} | |
{% endwebrequest %} | |
{% endwebrequest %} |
<!-- | |
If today is Sunday && Service time is 10:30am-12pm show live button otherwise hide it | |
to change day of week replace 0 after == with one of the following options: | |
0 Sunday | |
1 Monday | |
2 Tuesday | |
3 Wednesday | |
4 Thursday | |
5 Friday |
<?php | |
if ((date("w") == 0) && (date("Hi")>845) && (date("Hi")<1240)) $config->live = true; | |
if ((date("w") == 0) && (date("Hi")>859) && (date("Hi")<1240)) $config->live_need_countdown = true; | |
?> |
<?php foreach($page->children() as $campus): ?> | |
<div class="pd-xs"><a href="#"><img class="img-responsive img-full-width" src="<?= $campus->img->url; ?>" style="width:343; height:156;" /></a> | |
<h3><?= $campus->title; ?></h3> | |
<p class="campus-times"><?php echo $page->service_times;?></p> | |
<ul class="fa-ul"> | |
<li><?php echo $page->street_adress;?></li> | |
<li><?php echo $page->phone_number;?></li> | |
</ul> | |
<div class='mg-t-sm2'><a href="<?php echo $page->google_maps;?>" target="_blank" class='btn btn-default btn-left '> | |
<i class='icon-right-4 icon-fw'></i> Get Directions</a></div></div> |
{%- assign scheduleid = 240 -%} | |
<script type="text/javascript"> | |
$(function () { | |
var holiday = new Date(); | |
holiday = new Date("{[ scheduledcontent schedulecategoryid:'{{scheduleid}}' showwhen:'notlive' ]}{{ NextOccurrenceDateTime | Date: 'yyyy/MM/dd HH:mm:ss' }}{[ endscheduledcontent ]}{[ scheduledcontent schedulecategoryid:'{{scheduleid}}' showwhen:'live' ]}islive{[ endscheduledcontent ]}"); | |
$('#expireMessage').countdown({until: shortly, | |
expiryText: '<div class="over">It\'s all over</div>'}); | |
$('#expireMessageStart').click(function() { | |
shortly = new Date(); |
I hereby claim:
To claim this, I am signing this object:
.bttn { | |
-moz-border-radius: 5px; | |
-webkit-border-radius: 5px; | |
-khtml-border-radius: 5px; | |
border-radius: 5px; | |
border: 0; | |
padding: 6px; | |
text-transform: uppercase; | |
font-size: 11px; | |
font-weight: 600; |