This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Custom table sorting | |
*/ | |
import $ from 'jquery'; | |
export default { | |
// Set this opposite to what the default ordering is | |
DESC: false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Main application file | |
*/ | |
'use strict'; | |
var $ = require('jquery'), | |
mockjax = require('jquery-mockjax')($, window); | |
$.mockjax({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<video preload="none" autoplay loop poster="path/to/poster.jpg"> | |
<source src="path/to/video.mp4" type="video/mp4"> | |
<source src="path/to/video.ogg" type="video/ogg"> | |
Your browser does not support the video tag. | |
</video> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// List item to append tags to | |
var $tagList = $('.tags'); | |
// Get your data from this nice little endpoint in JSON form | |
$.get('/ghost/export/', function (data) { | |
var tags = data.data.tags; | |
for (var tag in tags) { | |
var tagName = tags[tag].name, | |
tagSlug = tags[tag].slug; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Descripton: A basic plugin to fetch all albums and associated photos from a Facebook page | |
* Usage: Simply reference the script and instantiate it | |
* Example instantiaion: | |
$(window).load(function () { | |
albumFetcher({ | |
fbId: "137248356344058", | |
container: ".photos" | |
}); |