This document contains important and hard-to-find Business Catalyst workarounds in the BC forums or elsewhere on the web
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
// Setup a variable to contain all the form input elements to enable | |
var myDisabledFields = "input, textarea, select, button"; | |
// The FB.Event.subscribe method lets us run some javascript on certain events. The "Like" event for the Javascript SDK is "edge.create" | |
FB.Event.subscribe('edge.create', | |
// Once we're subscribed, anytime the Like button is cliked Facebook sends us back some data in an array. | |
// We'll call that data array "response". | |
function(response) { | |
// If you uncomment the next line, you'll see the data returned in your console |
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> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"/> | |
</head> | |
<body> | |
<div id="fb-root"></div> | |
<script> | |
window.fbAsyncInit = function() { | |
// init the FB JS SDK |
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
<!-- | |
The element where your web app items will be appended to. | |
By default the script looks for an id of "random-web-app-items" | |
IMPORTANT: jQuery must be loaded on the page either in the HEAD of the doc or before you call the SCRIPTS below. | |
--> | |
<div id="random-web-app-items"></div> | |
<!-- Download this script to your site and replace the SRC with the path to your site's javascript file --> | |
<script src="//gist.github.com/thetrickster/5718857/raw/f0d736a4f80248c9c1a4184dcc43e223ac1e1d03/random-web-app-items.js"></script> |
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
webAppItems.push({id: {tag_itemid}, name: "{tag_name_nolink}", url: "{tag_itemurl_nolink}", image: "{tag_image_value}"}); |
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
Array.prototype.shuffle = function() { | |
var i = this.length, j, temp; | |
if ( i == 0 ) return this; | |
while ( --i ) { | |
j = Math.floor( Math.random() * ( i + 1 ) ); | |
temp = this[i]; | |
this[i] = this[j]; | |
this[j] = temp; | |
} | |
return this; |
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> | |
<html> | |
<head> | |
<title>Asynchronous Loading</title> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no"> | |
<meta charset="utf-8"> | |
<link href="/maps/documentation/javascript/examples/default.css" rel="stylesheet"> | |
<script> | |
function initialize() { | |
var mapOptions = { |
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
/* Yahoo! WebPlayer Loader, Build 0.9.76. Copyright (c) 2013, Yahoo! Inc. All rights reserved. | |
* Your use of this Yahoo! WebPlayer is subject to the Yahoo! Terms of Service | |
* located at http://info.yahoo.com/legal/us/yahoo/webplayer/details.html | |
*/ | |
(function(){var d="http://yui.yahooapis.com/3.5.1/build/yui/yui-min.js";if(typeof YAHOO=="undefined"){YAHOO={};}if(typeof YAHOO.MediaPlayer=="undefined"){YAHOO.MediaPlayer=function(){this.controller=null;};}YAHOO.MediaPlayer.isAPIReady=false;YAHOO.MediaPlayer.onAPIReady={subscribers:[],fire:function(){for(var f=0;f<this.subscribers.length;f++){if(YAHOO.MediaPlayer.isAPIReady===true){try{this.subscribers[f]();}catch(g){}}}},subscribe:function(e){this.subscribers.push(e);}};YAHOO.WebPlayer=YAHOO.MediaPlayer;var c=false;function b(f,h){var e=document.createElement("script");e.setAttribute("type","text/javascript");e.setAttribute("src",f);var g=document.getElementsByTagName("head")[0];e.onload=e.onreadystatechange=function(){if(!e.readyState||/loaded|complete/.tes |
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 userCountryCode = "{module_visitorcountrycode}"; | |
var disallowedCountryCodes = ["US", "UK"]; | |
var redirectBlockedUsersURL = "/country-blocked.html"; | |
(function($) { | |
$.each(disallowedCountryCodes, function(i,val) { | |
if ( val == userCountryCode ) { | |
window.location = redirectBlockedUsersURL; | |
} | |
}); |
Beta Version - Still a work in progress. Use at own risk.
Find and replace text node instances of Gyrotonic/Gyrokinesis in a web page and replace with the correct brand styles required by Gyrotonic Sales Group.
- Download the script below and save it to your website
- Reference the script in the or of your website after jQuery is already loaded
``
OlderNewer