Skip to content

Instantly share code, notes, and snippets.

View thunsaker's full-sized avatar
💻
Always Working

Thomas Hunsaker thunsaker

💻
Always Working
View GitHub Profile
@thunsaker
thunsaker / jQuery Mobile Dropdown Menu.js
Created February 11, 2011 16:51
Basic dropdown menu with arrow and animation
function openMenu() {
$(document).ready(function () {
if ($('#div_menu_links_wrapper').is(':hidden')) {
$('#img_menu_arrow_down').css('display', 'none');
$('#img_menu_arrow_up').css('display', 'block');
$('#div_menu_links_wrapper').slideDown('slow', function myfunction() { });
} else {
$('#img_menu_arrow_down').css('display', 'block');
$('#img_menu_arrow_up').css('display', 'none');
$('#div_menu_links_wrapper').slideUp('slow', function myfunction() { });
@thunsaker
thunsaker / Viewport - Fill Device Width.html
Created February 11, 2011 16:47
Code for mobile browsers to stretch the page to the width of the device.
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">