Forked from NaveenBhaskar's Pen Horizontal Tab.
Forked from A Non Ymous's Pen Horizontal Tab.
<!doctype html> | |
<!--[if lt IE 7 ]> <html class="ie ie6 no-js" lang="en"> <![endif]--> | |
<!--[if IE 7 ]> <html class="ie ie7 no-js" lang="en"> <![endif]--> | |
<!--[if IE 8 ]> <html class="ie ie8 no-js" lang="en"> <![endif]--> | |
<!--[if IE 9 ]> <html class="ie ie9 no-js" lang="en"> <![endif]--> | |
<!--[if gt IE 9]><!--><html class="no-js" lang="en"><!--<![endif]--> | |
<!-- the "no-js" class is for Modernizr. --> | |
<head> |
/* | |
* set a parent width to a given element | |
*/ | |
$(element).each(function(){ | |
$(this).css('width',$(this).parent().width()); | |
}); |
var winWidth = $(window).width(); | |
if (winWidth <= '320') { //iPhone only Portrait orientation | |
}else if (winWidth >= '321' && winWidth <= '480') { //iPhone Landscape orientation | |
}else if (winWidth >= '481' && winWidth <= '768') { //iPad Portrait orientation | |
}else if (winWidth >= '769' && winWidth <= '1024') { //iPad Landscape orientation |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
Forked from NaveenBhaskar's Pen Horizontal Tab.
Forked from A Non Ymous's Pen Horizontal Tab.
;(function($, window) { | |
'use-strict'; | |
var pluginName = "", | |
defaults = {}; | |
/** | |
* plugin constructor | |
* @param {object} parentElement the DOM of initialized plugin | |
* @param {object} options plugin config options |
{ | |
// http://eslint.org/docs/rules/ | |
"ecmaFeatures": { | |
"binaryLiterals": false, // enable binary literals | |
"blockBindings": false, // enable let and const (aka block bindings) | |
"defaultParams": false, // enable default function parameters | |
"forOf": false, // enable for-of loops | |
"generators": false, // enable generators | |
"objectLiteralComputedProperties": false, // enable computed object literal property names |
root = true | |
[*] | |
indent_style = space | |
indent_size = 2 | |
end_of_line = lf | |
charset = utf-8 | |
trim_trailing_whitespace = true | |
insert_final_newline = true |