forked from raket/idea-silverstripe
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.html
More file actions
95 lines (90 loc) · 2.17 KB
/
test.html
File metadata and controls
95 lines (90 loc) · 2.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Test</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="css/main.css">
</head>
<body class="my-class">
# You are reading the ".properties" entry.
! The exclamation mark can also mark text as comments.
website = http://en.wikipedia.org/
language = English
# The backslash below tells the application to continue reading
# the value onto the next line.
message = Welcome to \
Wikipedia!
# Add spaces to the key
key\ with\ spaces = This is the value that could be looked up with the key "key with spaces".
# Unicode
tab : \u0009
Variable $Var
Variable in quote "$Var"
<% loop $Var %>
Variable $Var
<% if $Var %>
<% end_if %>
<% end_loop %>
<% base_tag %>
<% include MetaTags %>
<% if $Var %>
<% end_if %>
$Var
<% if $Foo %>
<% loop $Bar %>
<% end_if %>
<script>
window.FBUserStatus = false;
window.fbAsyncInit = function() {
FB.init({
appId : '$Top.FacebookAppId',
status : true,
cookie : true,
xfbml : true,
oauth : true
});
FB.Event.subscribe('auth.login', function() {
if ($("#carousel").length == 0)
window.location.reload();
});
FB.getLoginStatus(function(response) {
window.FBUserStatus = response;
if (response.status === 'connected') {
$('#carousel, #arrow').animate({opacity:1},2000);
var uid = response.authResponse.userID;
var accessToken = response.authResponse.accessToken;
}
else {
if ($("#carousel").length > 0)
window.location.href = $("#carousel").data("url");
// the user isn't logged in to Facebook.
}
});
};
// Load the SDK Asynchronously
(function(d){
var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
if (d.getElementById(id)) {return;}
js = d.createElement('script'); js.id = id; js.async = true;
js.src = "//connect.facebook.net/sv_SE/all.js";
ref.parentNode.insertBefore(js, ref);
}(document));
</script>
</body>
</html>
<% if $foo %>
<% with $var %>
$V
<% end_with %>
<% end_if %>
<% if $Foo %>
<% else_if $var %>
<% else %>
<% include test %>
<% base_tag %>
<% include Marcus %>
<% include Marcus %>
<% include boom %>
<% end_if %>