Lines Matching refs:c

30   var c = this;
31 c.settingsDef = {
51 c.settings = (typeof (window.gOverride) === "undefined") ? {} : window.gOverride;
52 for (var a in c.settingsDef) {
53 if (typeof (c.settings[a]) === "undefined") {
54 c.settings[a] = c.settingsDef[a];
61 b.src = c.settings.urlBase + "jquery.js";
64 c._createEntity = function (e, d) {
67 c._setVariable = function (d, e) {
70 c.settings[d] = e;
72 c.settings[d] = parseInt(e, 10);
84 c.setupWindow = function () {
86 c.settings.height = jQuery(document).height();
87 if (c.settings.setupEnabled) {
90 if (Math.round((c.settings.size / d)) === (c.settings.size / d)) {
94 for (var d in c.settings) {
96 if (jQuery("#g-setup-" + d).parent().parent().is("#g-setup-misc") && c.settings[d]) {
99 jQuery("#g-setup-" + d).val(c.settings[d]);
105 c.toggleSetupWindow();
109 clearTimeout(c.settings.delayTimer);
110 c.settings.delayTimer = setTimeout(function () {
111 c.setVariable(jQuery(e).attr("id"), jQuery(e).val());
115 c.setVariable("gColumns", $(this).val());
118 c.setVariable(jQuery(this).attr("id"), jQuery(this).attr("checked"));
121 if (jQuery.inArray(f.which, c.settings.pressedKeys) === -1) {
122 c.settings.pressedKeys.push(f.which);
130 …if (jQuery.inArray(17, c.settings.pressedKeys) !== -1 && jQuery.inArray(18, c.settings.pressedKeys…
131 if (jQuery.inArray(90, c.settings.pressedKeys) !== -1) {
132 c.setVariable("gEnabled", !c.settings.gEnabled);
134 if (jQuery.inArray(88, c.settings.pressedKeys) !== -1) {
135 c.setVariable("pEnabled", !c.settings.pEnabled);
137 if (jQuery.inArray(65, c.settings.pressedKeys) !== -1) {
138 c.setVariable("invert", !c.settings.invert);
140 if (jQuery.inArray(67, c.settings.pressedKeys) !== -1) {
141 c.setVariable({
142 gEnabled: !c.settings.gEnabled,
143 pEnabled: !c.settings.pEnabled
150 var f = jQuery.inArray(g.which, c.settings.pressedKeys);
151 c.settings.pressedKeys.splice(f, f);
154 c.setVariable = function () {
157 c._setVariable(d, arguments[0][d]);
160 c._setVariable(arguments[0], arguments[1]);
162 c.createGrid();
164 c.toggleSetupWindow = function () {
177 c.createGrid = function () {
179 if (c.settings.fixFlash) {
189 jQuery('<div id="g-grid"></div>').appendTo("body").css("width", c.settings.size);
190 if (c.settings.center) {
193 marginLeft: -((c.settings.size / 2) + c.settings.gWidth)
196 if (c.settings.gEnabled && c.settings.gColumns > 0) {
197 if (c.settings.invert) {
199 var e = (jQuery(window).width() - c.settings.size) / 2;
200 c._createEntity("vertical", {
203 height: c.settings.height,
204 backgroundColor: c.settings.gColor,
205 opacity: c.settings.gOpacity
207 for (var g = 0; g < c.settings.gColumns; g++) {
208 var f = (c.settings.size / c.settings.gColumns) - (c.settings.gWidth * 2);
209 var h = (c.settings.gWidth * 2);
210 c._createEntity("vertical", {
213 height: c.settings.height,
214 backgroundColor: c.settings.gColor,
215 opacity: c.settings.gOpacity
218 if ((c.settings.height + 10) > jQuery(window).height()) {
221 c._createEntity("vertical", {
225 height: c.settings.height,
226 backgroundColor: c.settings.gColor,
227 opacity: c.settings.gOpacity
230 for (var g = 0; g <= c.settings.gColumns; g++) {
231 c._createEntity("vertical", {
232 left: ((c.settings.size / c.settings.gColumns) * g),
233 width: (c.settings.gWidth * 2),
234 height: c.settings.height,
235 backgroundColor: c.settings.gColor,
236 opacity: c.settings.gOpacity
241 if (c.settings.pEnabled && c.settings.pHeight > 1) {
242 var d = ((c.settings.height - c.settings.pOffset) / c.settings.pHeight);
244 c._createEntity("horizontal", {
245 top: ((c.settings.height / d) * g) + c.settings.pOffset,
247 marginLeft: -(c.settings.size / 2),
248 width: (c.settings.size + (c.settings.gWidth * 2)),
249 backgroundColor: c.settings.pColor,
250 opacity: c.settings.pOpacity