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
chatManager | |
.connect() | |
.then(currentUser => { | |
currentUser.rooms.forEach(r => currentUser.subscribeToRoom({ | |
roomId: currentUser.rooms[0].id, | |
hooks: { | |
onNewMessage: message => { | |
console.log(`Received new message: ${message.text}`) | |
} | |
} |
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
// BUILD VIDEO SOURCE | |
var mp4 = $('#home-video-div').attr("data-mpfour"); | |
var webm = $('#home-video-div').attr("data-webm"); | |
$('#bgvid').append('<source src="'+ mp4 +'" type="video/mp4"><source src="'+ webm +'" type="video/webm">'); | |
// SCALE VIDEO SOURCE | |
$('#home-video-div').delay(200).velocity({ opacity: 1 }, { display: "block" }); |
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
<_1:PatientUpdateReq PatientID="1225203" IDType="?" PartnerCode="?"> | |
<!--You have a CHOICE of the next 2 items at this level--> | |
<_1:Edits> | |
<_1:PreferredContactMethod>Home1AddrPhone</_1:PreferredContactMethod> | |
<_1:Home1AddrPhone>123-123-1234</Home1AddrPhone> | |
</_1:Edits> | |
</_1:PatientUpdateReq> |
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
if( !function_exists( 'adj_top_cat_page' ) ) { | |
function adj_top_cat_page( $term_tax_id ) { | |
$product_cat_id = $term_tax_id; | |
$children_cat_ids = get_terms( 'product_category', array( | |
'hide_empty' => false, | |
'fields' => 'ids', | |
'child_of' => $product_cat_id | |
) ); |
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
// CUSTOMIZE TinyMCE | |
function my_mce_buttons_2( $buttons ) { | |
array_unshift( $buttons, 'styleselect' ); | |
return $buttons; | |
} | |
// Register our callback to the appropriate filter | |
add_filter('mce_buttons_2', 'my_mce_buttons_2'); | |
function my_theme_add_editor_styles() { | |
add_editor_style( '/assets/css/custom-editor-style.css' ); |
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
<!-- Google Code for Alderwood Form Submission Conversion Page | |
In your html page, add the snippet and call | |
goog_report_conversion when someone clicks on the | |
chosen link or button. --> | |
<script type="text/javascript"> | |
/* <![CDATA[ */ | |
goog_snippet_vars = function() { | |
var w = window; | |
w.google_conversion_id = 973383578; | |
w.google_conversion_label = "[Conversion Label]"; |
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
$('.entity-modal form').submit(function(e){ | |
e.preventDefault(); | |
var link = $(this).attr('action'); | |
var data = $(this).serialize(); | |
$.ajax({ | |
type: "POST", | |
url: link, | |
data: data, |
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
$.ajax({ | |
type: "POST", | |
url: link, | |
data: data, | |
success: function(response){ | |
console.log('Default Entity Updated'); | |
}, | |
error: function(data){ | |
var errors = data.responseJSON; | |
var i = 1; |
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
// BUILD VIDEO SOURCE | |
var mp4 = $('#home-video-div').attr("data-mpfour"); | |
var webm = $('#home-video-div').attr("data-webm"); | |
$('#bgvid').append('<source src="'+ mp4 +'" type="video/mp4"><source src="'+ webm +'" type="video/webm">'); | |
// SCALE VIDEO SOURCE | |
$('#home-video-div').delay(200).velocity({ opacity: 1 }, { display: "block" }); |