Skip to content

Instantly share code, notes, and snippets.

@MiraiTunga
MiraiTunga / ScoresRanked.cs
Last active April 3, 2018 23:27
Unity 3d Simple Score Board Manager
using System;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
namespace ScoreBoard
{
[Serializable]
@MiraiTunga
MiraiTunga / BigCommerceStoreCartDataInLocalStorage.js
Created April 3, 2018 23:40
Big Commerce Store Cart Data In Local Storage Then Push to gtm at later stage
//Added script to order-confrirmtion.html page
//store data after payment has been actioned
$("body").on("click","#checkout-payment-continue" ,function () {
var CratItems = {{{json cart.items}}};
var Cart = {{{json cart}}};
StoreCartItems(CratItems);
//console.log(localStorage.getItem('transactionItems'));
@MiraiTunga
MiraiTunga / reCaptchaV2-refresh.js
Created April 3, 2018 23:44
Prevents google recaptcha from timing out in Business catalyst and adds a refresh captcha link
//add script to end of form
(function ($) {
$( window ).load(function() {
SetRefreshButton();
});
window.setInterval(function(){
reCaptchaV2Manager.onLoadHandler();
}, 120000);