Skip to content

Instantly share code, notes, and snippets.

Avatar
🚀

James JWardee

🚀
View GitHub Profile
@JWardee
JWardee / GeneralDirector.cs
Last active Jan 25, 2016
Helper class for executing a HTTP request using c# in Unity v5 by calling one function and supplying a callback (very similarly to jQuery)
View GeneralDirector.cs
using UnityEngine;
using System.Collections;
public class GeneralDirector : MonoBehaviour {
static public HTTP http;
public void Start () {
http = this.gameObject.GetComponent<HTTP> ();
}
}
@JWardee
JWardee / index.html
Created Jun 9, 2015
Multi level mobile menu
View index.html
<nav id="mobile_menu">
<div class="level _show" id="1">
<a href="#11">Link 1 <i class="ion-ios-arrow-right -icon"></i></a>
<a href="/about">Link 2</a>
<a href="/about">Link 3</a>
<a href="/about">Link 4</a>
<a href="/about">Link 5</a>
</div>
<div class="level" id="11">
You can’t perform that action at this time.