This file contains 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
var instanse = false; | |
var state; | |
var mes; | |
var file; | |
function Chat () { | |
this.update = updateChat; | |
this.send = sendChat; | |
this.getState = getStateOfChat; | |
} |
This file contains 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
<!doctype html> | |
<!--[if lt IE 7 ]> <html class="no-js ie6 ie" lang="en"> <![endif]--> | |
<!--[if IE 7 ]> <html class="no-js ie7 ie" lang="en"> <![endif]--> | |
<!--[if IE 8 ]> <html class="no-js ie8 ie" lang="en"> <![endif]--> | |
<!--[if (gte IE 9)|!(IE)]><!--> <html class="no-js" lang="en"> <!--<![endif]--> |
This file contains 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
<ul> | |
<li> | |
<a href="#">Do a thing</a> | |
<summary> | |
? | |
<details> | |
Bunch of HTML in here. | |
<details> | |
</summary> | |
</li> |
This file contains 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
.fluid-width-video-wrapper { | |
width: 100%; | |
position: relative; | |
padding: SET-BY-JAVASCRIPT% 0 0 0; | |
} | |
.fluid-width-video-wrapper iframe, | |
.fluid-width-video-wrapper object, | |
.fluid-width-video-wrapper embed { | |
position: absolute; |
This file contains 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
(function() { | |
var fluidParent = $("#juice > .inside > article"), | |
newWidth, newHeight; | |
function resizeVideo() { | |
newWidth = fluidParent.width(); | |
sublimevideo.resize('the-video', newWidth, newWidth/1.78125); | |
}; | |
This file contains 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
$(".accordion").accordion({ | |
openCallback: myCustomOpenCallback, | |
closeCallback: myCustomCloseCallback | |
}) |
This file contains 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
$allVideos.each(function(){ | |
var $this = $(this); | |
if (this.tagName == 'embed' && $this.parent('object').length) { return; } | |
var height = this.tagName == 'OBJECT' ? $this.attr('height') : $this.height(), | |
aspectRatio = height / $this.width(); | |
$this.wrap('<div class="fluid-width-video-wrapper" />').parent('.fluid-width-video-wrapper').css('padding-top', (aspectRatio * 100)+"%"); | |
$this.removeAttr('height').removeAttr('width'); | |
}); |
This file contains 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
<?php | |
/* | |
Template Name: RSS Videos | |
*/ | |
$posts = query_posts('showposts=-1&post_type=page&post_status=publish&post_parent=1283'); | |
header('Content-Type: '.feed_content_type('rss-http').'; charset='.get_option('blog_charset'), true); | |
echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; | |
?> |
This file contains 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
add_action( 'init', 'create_post_type' ); | |
function create_post_type() { | |
register_post_type( 'screenshot', | |
array( | |
'labels' => array( | |
'name' => __( 'Screenshots' ), | |
'singular_name' => __( 'Screenshot' ), | |
'add_new' => __( 'Add Screenshot' ), | |
'add_new_item' => __( 'Add New Screenshot' ), | |
'edit_item' => __( 'Edit Screenshot' ), |
This file contains 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
<?php if ($_SERVER['something'] == mx) { ?> | |
<div class="no-translate"> | |
<?php echo get_post_meta($post->ID, 'translate-mx', true) ?> | |
</div> | |
<?php } else { ?> | |
<?php the_content(); ?> | |
<?php } ?> |