Commit a7ee09fe authored by svilayphiou's avatar svilayphiou

Restructuration du projet pendant le workshop OSP à la HEAR, Strasbourg.

In the "setup" folder, you can now edit local settings such as page
number, source of the content (which can be a remote URL like the export
URL of an Etherpad), page geometry…
parent b7097add
p{
font-family: 'Lora', serif;
text-indent: 15px;
}
blockquote{
margin-top: 15px;
margin-bottom: 15px;
font-size: 1.25em;
font-style: italic;
}
/* Here you can put your specific typography, layout styles. */
$(function() {
// ________________________________ INIT __________________________________ //
// Cloning the master page
for (i = 1; i < nb_page; i++){
$("#master-page").clone().attr("id","page-"+i).insertBefore($("#master-page"));
}
$("#master-page").hide();
// Loads main content into <article id="my-story">
$("#my-story").load(content);
// ________________________________ PREVIEW __________________________________ //
$("#preview").click(function(e){
e.preventDefault();
......
$(function() {
// Choose the number of pages of the document
var nb_page = 6;
for (i = 1; i < nb_page; i++){
$("#master-page").clone().attr("id","page-"+i).insertBefore($("#master-page"));
}
$("#master-page").hide();
// Loads main content into <article id="my-story">
$("#my-story").load("content.html");
// __________________________________ MOVEABLE ELEMENTS __________________________________ //
$("div.moveable").
......
......@@ -6,6 +6,7 @@
<link rel="stylesheet" type="text/css" href="assets/lib/reset.css" />
<link rel="stylesheet" href="main.less" type="text/less" media="all" charset="utf-8">
<link rel="stylesheet" href="https://lite6.framapad.org/p/html2print/export/txt" type="text/less" media="all" charset="utf-8">
<link rel="stylesheet" href="assets/lib/jquery-ui-1.10.3/css/smoothness/jquery-ui-1.10.3.custom.min.css" type="text/css" media="all" charset="utf-8">
</head>
<body>
......@@ -37,14 +38,14 @@
</div>
<div id="stories">
<article id="my-story" data-src="content.html"></article>
<article id="my-story"></article>
</div>
<!-- JAVASCRIPT -->
<script type="text/javascript" src="assets/lib/less-1.3.0.min.js"></script>
<script type="text/javascript" src="assets/lib/jquery.min.js"></script>
<script type="text/javascript" src="assets/lib/cssregions.min.js"></script>
<script type="text/javascript" src="setup/setup.js"></script>
<script type="text/javascript" src="assets/js/html2print.js"></script>
<script type="text/javascript" src="assets/lib/jquery-ui-1.10.3/js/jquery-ui-1.10.3.custom.min.js"></script>
......
@import "assets/css/page_document_setup.less";
@import "setup/setup.less";
@import "assets/css/html2print.less";
@import "assets/css/page.less";
@import "assets/css/typography.less";
// Local settings
var nb_page = 24;
var content = "content.html";
......@@ -20,3 +20,5 @@
@page-margin-top: 10mm;
@page-margin-bottom: 15mm;
@couleur1: blue;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment