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
<nav> | |
<div class="menu-main-container"><ul id="menu-main" class="menu"><li id="menu-item-19" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-19"><a href="http://localhost/tigerstudiov2/?page_id=5">Work</a></li> | |
<li id="menu-item-18" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-18"><a href="http://localhost/tigerstudiov2/?page_id=7">Company</a> | |
<ul class="sub-menu"> | |
<li id="menu-item-21" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-21"><a href="#">test sub-item</a></li> | |
<li id="menu-item-22" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-22"><a href="#">item 2</a></li> | |
<li id="menu-item-23" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-23"><a href="http://adf">asfdasf</a></li> | |
<li id="menu-item-24" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-24"><a href="http://asdfasf">asdfasf</a></li> | |
</ul> | |
</li> |
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
<nav> | |
<div class="menu-main-container"> | |
<ul id="menu-main" class="menu"> | |
<li id="menu-item-19" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-19"><a href="http://localhost/tigerstudiov2/?page_id=5">Work</a></li> | |
<li id="menu-item-18" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-18"><a href="http://localhost/tigerstudiov2/?page_id=7">Company</a> | |
<ul class="sub-menu"> | |
<li id="menu-item-21" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-21"><a href="#">test sub-item</a></li> | |
<li id="menu-item-22" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-22"><a href="#">item 2</a></li> | |
<li id="menu-item-23" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-23"><a href="http://adf">asfdasf</a></li> | |
<li id="menu-item-24" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-24"><a href="http://asdfasf">asd |
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
<nav> | |
<div class="menu-main-container"> | |
<ul id="menu-main" class="menu"> | |
<li id="menu-item-19" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-19"><a href="http://localhost/tigerstudiov2/?page_id=5">Work</a></li> | |
<li id="menu-item-18" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-18"><a href="http://localhost/tigerstudiov2/?page_id=7">Company</a> | |
<ul class="sub-menu"> | |
<li id="menu-item-39" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-39"><a href="http://localhost/tigerstudiov2/?page_id=27">about</a></li> | |
<li id="menu-item-38" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-38"><a href="http://localhost/tigerstudiov2/?page_id=29">Studio</a></li> | |
<li id="menu-item-37" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-37"><a href="http://localhost/tigerstudiov2/?page_id=31">Team</a></li> | |
<li id="menu-item-36" class="menu |
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
<div id="nav-wrapper"> | |
<nav> | |
<h2 id="branding"><a href="/"><span></span>Tiger Studio Design</a></h2> | |
<div class="menu-main-container"><ul id="menu-main" class="menu clearfix tshadow"> | |
<li id="menu-item-19" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-19"><a href="#">Work</a></li> | |
<li id="menu-item-18" class="menu-item menu-item-type-post_type menu-item-object-page current-menu-item page_item page-item-7 current_page_item menu-item-18"><a href="#">Company</a> | |
<ul class="sub-menu"> | |
<li id="menu-item-39" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-39"><a href="#">About</a></li> | |
<li id="menu-item-38" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-38"><a href="#">Studio</a></li> | |
<li id="menu-item-37" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-37"><a href="#">Team</a></li> |
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
function getDivWidthHeight() { | |
var divNumber = doc.pathItems.length; | |
var divHeightWidth = []; | |
for (i = 0; i < divNumber; i++){ | |
if ( app.documents.length > 0 ) { | |
var itemWidth = doc.pathItems[i].width; | |
var itemHeight = doc.pathItems[i].height; | |
var currentLayerName = getLayerName(i); | |
divHeightWidth.push(currentLayerName, itemWidth, itemHeight); | |
} |
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 point = new Point(this); | |
undefined | |
point | |
Point | |
x: DOMWindow | |
y: undefined | |
__proto__: Point | |
constructor: function Point(x, y) { | |
translate: function (x, y) { this.x+=x; this.y+=y } | |
__proto__: Object |
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
function isObject(myInput) { | |
try { | |
var isObject = false; | |
for(key in myInput) { | |
var isObject = true; | |
} | |
}catch(err) { }; | |
if (isObject == true) { | |
return true; | |
} |
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
function all() { | |
var doc = app.activeDocument; | |
var itemsToLoop = [doc.layers, doc.symbolItems]; | |
var arrayItems = []; | |
for( i = 0; i < itemsToLoop.length; i++) { | |
var itemName[i] = itemsToLoop[i].name; | |
arrayItems.push(itemName[i]); | |
} | |
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
function all() { | |
var doc = app.activeDocument; | |
var itemsToLoop = [doc.layers, doc.symbolItems]; | |
var arrayItems = []; | |
for( i = 0; i < itemsToLoop.length; i++) { | |
var itemName[i] = itemsToLoop[i].name; | |
arrayItems.push(itemName[i]); | |
} | |
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
function All() { | |
var doc = app.activeDocument; | |
// list of items we might want to loop through | |
var itemsToLoop = [doc.layers, doc.symbolItems]; | |
//reference for method to know how many layers, pathitems, symbols etc are being looped | |
//can I do: this.itemsToLoop = [doc.layers, doc.symbolItems]; to remove prev var? | |
this.name = itemsToLoop; | |
} | |
All.prototype.findAndReplace = function(find, replace) { |
OlderNewer