Skip to content
This repository has been archived by the owner on Jun 7, 2022. It is now read-only.

Commit

Permalink
Added an extension for Adobe Fireworks.
Browse files Browse the repository at this point in the history
  • Loading branch information
nathansmith committed Jun 26, 2010
1 parent 3b73cc8 commit 771c3a5
Showing 6 changed files with 107 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.txt
Original file line number Diff line number Diff line change
@@ -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.
Binary file added fireworks_extension/960.gs Grid Commands.mxp
Binary file not shown.
26 changes: 26 additions & 0 deletions fireworks_extension/_source/12 columns.jsf
Original file line number Diff line number Diff line change
@@ -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');
}
})();
26 changes: 26 additions & 0 deletions fireworks_extension/_source/16 columns.jsf
Original file line number Diff line number Diff line change
@@ -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');
}
})();
26 changes: 26 additions & 0 deletions fireworks_extension/_source/24 columns.jsf
Original file line number Diff line number Diff line change
@@ -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');
}
})();
22 changes: 22 additions & 0 deletions fireworks_extension/_source/960.gs Grid Commands.mxi
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<macromedia-extension name="960.gs Grid Generators" version="1.0.0" type="Command">
<author name="Nathan Smith" />
<products>
<product name="Fireworks" version="6" primary="true" />
</products>
<description>
<![CDATA[
This set of commands generates 960.gs grid guidelines in current file.
]]>
</description>
<ui-access>
<![CDATA[
You can run these commands from Commands menu.
]]>
</ui-access>
<files>
<file name="12 columns.jsf" destination="$fireworks/configuration/commands/960.gs" />
<file name="16 columns.jsf" destination="$fireworks/configuration/commands/960.gs" />
<file name="24 columns.jsf" destination="$fireworks/configuration/commands/960.gs" />
</files>
<configuration-changes />
</macromedia-extension>

0 comments on commit 771c3a5

Please sign in to comment.