Retive a JSON of videos by video ID and build the HTML for the videos.
A Pen by Lucas Dasso on CodePen.
Retive a JSON of videos by video ID and build the HTML for the videos.
A Pen by Lucas Dasso on CodePen.
| <?php | |
| /** | |
| * Template Name: Custom Post Types List | |
| */ | |
| get_header(); | |
| $args=array( | |
| 'public' => true, |
/*
* Multi-Environment Config part for WordPress
* By [email protected]
*
* Determines the current domain hosting, and calls| var gulp = require('gulp'); | |
| var plumber = require('gulp-plumber'); | |
| var gutil = require('gulp-util'); | |
| var gulp_src = gulp.src; | |
| gulp.src = function() { | |
| return gulp_src.apply(gulp, arguments) | |
| .pipe(plumber(function(error) { | |
| // Output an error message | |
| gutil.log(gutil.colors.red('Error (' + error.plugin + '): ' + error.message)); |
| var plumber = require('gulp-plumber'), | |
| notify = require('gulp-notify'), | |
| gutil = require('gulp-util'); | |
| var gulp_src = gulp.src; | |
| gulp.src = function() { | |
| return gulp_src.apply(gulp, arguments) | |
| .pipe(plumber(function(error) { | |
| var plumber = require('gulp-plumber'), | |
| notify = require('gulp-notify'); | |
| var gulp_src = gulp.src; | |
| gulp.src = function() { | |
| return gulp_src.apply(gulp, arguments) | |
| .pipe(plumber({ errorHandler: notify.onError({ | |
| title: "<%= error.plugin %>", | |
| message: "<%= error.message %>" | |
| }) |
| function viewport() { | |
| var e = window, a = 'inner'; | |
| if (!('innerWidth' in window )) { | |
| a = 'client'; | |
| e = document.documentElement || document.body; | |
| } | |
| //return { width : e[ a+'Width' ] , height : e[ a+'Height' ] }; | |
| return e[ a+'Width' ]; | |
| } |
##jQuery: Convert mouse coordinate to cartecian (centered on parent div)
$('.canvas').on('click', function(e){
var offset = $(this).offset();
var x = (e.pageX - offset.left);
var y = (e.pageY - offset.top);| <?php | |
| function curPageURL() { | |
| $pageURL = 'http'; | |
| if ( isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on" ) { $pageURL .= "s"; } | |
| $pageURL .= "://"; | |
| $pageURL .= $_SERVER["SERVER_NAME"]; | |
| return $pageURL; | |
| } |
| <style> | |
| body{background:#0f4d8f; overflow-x: hidden;} | |
| #title, #main, #user{ | |
| background: none !important; | |
| } | |
| #title .content h1, #title .content h2{ | |
| text-shadow: none; | |
| } | |
| .nyan{ | |
| z-index:10; |