<%
$(function () {
$("#iff-snippet").append("<p>This should appear FIRST</p>");
});
y = 10;
$(function () {
$("#iff-snippet").append("<p>This should appear SECOND</p>");
});
y += 10;
$(function () {
$("#iff-snippet").append("<p>This should appear THIRD</p>");
});
y += 10;
s.y = y;
%>
<% $(function () {
$("#iff-snippet").append("<p>This should appear FOURTH</p>");
});
z = 100;
%><% $(function () {
$("#iff-snippet").append(
"<p>This should appear SIXTH (and FIFTH should have been skipped)</p>"
);
});
z += 100;
s.z = z;
%><%
/***
* code for snippet "Multiple Files" (file: "/home/sotiris/projects/intfiction/iffinity/examples/multfiles/scripts/snippet1.js")
***/
$(function () {
$("#iff-snippet").append("<p>This should appear SEVENTH</p>");
});
w = 1000;
%>
<%
/***
* code for snippet "Multiple Files" (file: "/home/sotiris/projects/intfiction/iffinity/examples/multfiles/scripts/snippet2.js")
***/
$(function () {
$("#iff-snippet").append("<p>This should appear EIGHTH</p>");
});
w += 1000;
%>
<%
/***
* code for snippet "Multiple Files" (file: "/home/sotiris/projects/intfiction/iffinity/examples/multfiles/scripts/snippet3.js")
***/
$(function () {
$("#iff-snippet").append("<p>This should appear NINTH</p>");
});
w += 1000;
s.w = w;
%>
This is an example to test the usage of multiple files (arrays) in the
config file.
X should be 3 (story scripts) -> X = <%= s.x %>
Y should be 30 (global scripts) -> Y = <%= s.y %>
Z should be 200 (tag scripts) -> Z = <%= s.z %>
W should be 3000 (snippet scripts) -> W = <%= s.w %>
The background should be blue.
let x = 1;
x += 1;
x += 1;
s.x = x;