mirror of
https://code.sup39.dev/repos/Wqawg
synced 2024-12-27 19:44:50 +09:00
51 lines
1.9 KiB
Text
51 lines
1.9 KiB
Text
$newline never
|
|
\<!doctype html>
|
|
\<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
|
|
\<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]-->
|
|
\<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]-->
|
|
\<!--[if gt IE 8]><!-->
|
|
<html class="no-js" lang="en"> <!--<![endif]-->
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
|
|
<title>#{pageTitle pc}
|
|
<meta name="description" content="">
|
|
<meta name="author" content="">
|
|
|
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
|
|
^{pageHead pc}
|
|
|
|
\<!--[if lt IE 9]>
|
|
\<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
|
\<![endif]-->
|
|
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.js">
|
|
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/js-cookie/2.0.3/js.cookie.min.js">
|
|
|
|
<script>
|
|
/* The `defaultCsrfMiddleware` Middleware added in Foundation.hs adds a CSRF token the request cookies. */
|
|
/* AJAX requests should add that token to a header to be validated by the server. */
|
|
/* See the CSRF documentation in the Yesod.Core.Handler module of the yesod-core package for details. */
|
|
var csrfHeaderName = "#{TE.decodeUtf8 $ CI.foldedCase defaultCsrfHeaderName}";
|
|
|
|
var csrfCookieName = "#{TE.decodeUtf8 defaultCsrfCookieName}";
|
|
var csrfToken = Cookies.get(csrfCookieName);
|
|
|
|
|
|
if (csrfToken) {
|
|
\ $.ajaxPrefilter(function( options, originalOptions, jqXHR ) {
|
|
\ if (!options.crossDomain) {
|
|
\ jqXHR.setRequestHeader(csrfHeaderName, csrfToken);
|
|
\ }
|
|
\ });
|
|
}
|
|
|
|
<script>
|
|
document.documentElement.className = document.documentElement.className.replace(/\bno-js\b/,'js');
|
|
<body>
|
|
<div class="container">
|
|
<header>
|
|
<div id="main" role="main">
|
|
^{pageBody pc}
|
|
<footer>
|
|
#{appCopyright $ appSettings master}
|