diff --git a/README.txt b/README.txt index 3cd5426..eaec50f 100755 --- a/README.txt +++ b/README.txt @@ -1,11 +1,17 @@ 960 Grid System Version 1.5 -2010-05-11 +2010-06-26 Created by Nathan Smith. See the official site for more info: http://960.gs/ ============================================================================ +To install the Adobe Fireworks extension, simply double-click the *.mxp file +included in the /fireworks_extension directory. If you are running Windows 7 +you will need admin permissions in order to install this extension properly. + +============================================================================ + Thank you for downloading the 960 Grid System. I hope it helps to streamline web development workflow. Enclosed in the bundle are printable sketch sheets and template files for Adobe Fireworks and Photoshop, OmniGraffle and Visio. diff --git a/fireworks_extension/960.gs Grid Commands.mxp b/fireworks_extension/960.gs Grid Commands.mxp new file mode 100755 index 0000000..f838abf Binary files /dev/null and b/fireworks_extension/960.gs Grid Commands.mxp differ diff --git a/fireworks_extension/_source/12 columns.jsf b/fireworks_extension/_source/12 columns.jsf new file mode 100755 index 0000000..fd9223b --- /dev/null +++ b/fireworks_extension/_source/12 columns.jsf @@ -0,0 +1,26 @@ +(function() { + var pattern = [10, 60, 10]; + var p = pattern.length; + var columns = 12; + var x = 0; + var guides = [x]; + + for (var c = 0; c < columns; c++) { + for (var i = 0; i < p; i++) { + x += pattern[i]; + guides.push(x); + } + } + + var d = fw.getDocumentDOM(); + d.removeAllGuides('horizontal'); + d.removeAllGuides('vertical'); + d.setShowGuides(true); + + var padding = Math.round((d.width - x) / 2); + var g = guides.length; + + for (var j = 0; j < g; j++) { + d.addGuide(padding + guides[j], 'vertical'); + } +})(); \ No newline at end of file diff --git a/fireworks_extension/_source/16 columns.jsf b/fireworks_extension/_source/16 columns.jsf new file mode 100755 index 0000000..7690878 --- /dev/null +++ b/fireworks_extension/_source/16 columns.jsf @@ -0,0 +1,26 @@ +(function() { + var pattern = [10, 40, 10]; + var p = pattern.length; + var columns = 16; + var x = 0; + var guides = [x]; + + for (var c = 0; c < columns; c++) { + for (var i = 0; i < p; i++) { + x += pattern[i]; + guides.push(x); + } + } + + var d = fw.getDocumentDOM(); + d.removeAllGuides('horizontal'); + d.removeAllGuides('vertical'); + d.setShowGuides(true); + + var padding = Math.round((d.width - x) / 2); + var g = guides.length; + + for (var j = 0; j < g; j++) { + d.addGuide(padding + guides[j], 'vertical'); + } +})(); \ No newline at end of file diff --git a/fireworks_extension/_source/24 columns.jsf b/fireworks_extension/_source/24 columns.jsf new file mode 100755 index 0000000..d322fcd --- /dev/null +++ b/fireworks_extension/_source/24 columns.jsf @@ -0,0 +1,26 @@ +(function() { + var pattern = [5, 30, 5]; + var p = pattern.length; + var columns = 24; + var x = 0; + var guides = [x]; + + for (var c = 0; c < columns; c++) { + for (var i = 0; i < p; i++) { + x += pattern[i]; + guides.push(x); + } + } + + var d = fw.getDocumentDOM(); + d.removeAllGuides('horizontal'); + d.removeAllGuides('vertical'); + d.setShowGuides(true); + + var padding = Math.round((d.width - x) / 2); + var g = guides.length; + + for (var j = 0; j < g; j++) { + d.addGuide(padding + guides[j], 'vertical'); + } +})(); \ No newline at end of file diff --git a/fireworks_extension/_source/960.gs Grid Commands.mxi b/fireworks_extension/_source/960.gs Grid Commands.mxi new file mode 100755 index 0000000..2593bc3 --- /dev/null +++ b/fireworks_extension/_source/960.gs Grid Commands.mxi @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file