Remove FAQ and references to it
parent
cf8bd3d5af
commit
ead97d8f41
@ -1,17 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html class="cp">
|
||||
<!-- If this file is not called customize.dist/src/template.html, it is generated -->
|
||||
<head>
|
||||
<title data-localization="main_title">CryptPad: Collaboration suite, encrypted and open-source</title>
|
||||
<meta content="text/html; charset=utf-8" http-equiv="content-type"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||
<link rel="icon" type="image/png" href="/customize/favicon/main-favicon.png" id="favicon"/>
|
||||
<script async data-bootload="/customize/template.js" data-main="/common/boot.js?ver=1.0" src="/bower_components/requirejs/require.js?ver=2.3.5"></script>
|
||||
</head>
|
||||
<body class="html">
|
||||
<noscript>
|
||||
<p><strong>OOPS</strong> In order to do encryption in your browser, Javascript is really <strong>really</strong> required.</p>
|
||||
<p><strong>OUPS</strong> Afin de pouvoir réaliser le chiffrement dans votre navigateur, Javascript est <strong>vraiment</strong> nécessaire.</p>
|
||||
</noscript>
|
||||
</html>
|
||||
|
@ -1,61 +0,0 @@
|
||||
define([
|
||||
'jquery',
|
||||
'/common/hyperscript.js',
|
||||
'/customize/messages.js',
|
||||
'/customize/pages.js'
|
||||
], function ($, h, Msg, Pages) {
|
||||
return function () {
|
||||
var categories = [];
|
||||
var faq = Msg.faq;
|
||||
Object.keys(faq).forEach(function (c) {
|
||||
var questions = [];
|
||||
Object.keys(faq[c]).forEach(function (q) {
|
||||
var item = faq[c][q];
|
||||
if (typeof item !== "object") { return; }
|
||||
var answer = h('p.cp-faq-questions-a');
|
||||
var hash = c + '-' + q;
|
||||
var question = h('p.cp-faq-questions-q#' + hash);
|
||||
$(question).click(function () {
|
||||
if ($(answer).is(':visible')) {
|
||||
$(question).toggleClass('cp-active-faq');
|
||||
return void $(answer).slideUp();
|
||||
}
|
||||
$(question).toggleClass('cp-active-faq');
|
||||
$(answer).slideDown();
|
||||
var t = $(window).scrollTop();
|
||||
window.location.hash = hash;
|
||||
$(window).scrollTop(t);
|
||||
});
|
||||
questions.push(h('div.cp-faq-questions-items', [
|
||||
Pages.setHTML(question, item.q),
|
||||
Pages.setHTML(answer, item.a)
|
||||
]));
|
||||
});
|
||||
categories.push(h('div.cp-faq-category', [
|
||||
h('h3', faq[c].title),
|
||||
h('div.cp-faq-category-questions', questions)
|
||||
]));
|
||||
});
|
||||
var hash = window.location.hash;
|
||||
if (hash) {
|
||||
$(categories).find(hash).click();
|
||||
}
|
||||
return h('div#cp-main', [
|
||||
Pages.infopageTopbar(),
|
||||
h('div.container-fluid.cp-faq', [
|
||||
h('div.container',[
|
||||
h('center', h('h1', Msg.faq_title)),
|
||||
]),
|
||||
]),
|
||||
h('div.container.cp-faq-ques-det',[
|
||||
h('div.cp-faq-header.text-center', h('a.nav-item.nav-link', {
|
||||
href: '/what-is-cryptpad.html'
|
||||
}, Pages.setHTML(h('h4'),Msg.faq_whatis))),
|
||||
h('div.cp-faq-container', categories)
|
||||
]),
|
||||
Pages.infopageFooter()
|
||||
]);
|
||||
};
|
||||
|
||||
});
|
||||
|
@ -1,86 +0,0 @@
|
||||
@import (reference) "../include/infopages.less";
|
||||
@import (reference) "../include/colortheme-all.less";
|
||||
|
||||
&.cp-page-faq {
|
||||
.infopages_main();
|
||||
|
||||
#cp-main {
|
||||
background: #fff;
|
||||
}
|
||||
.cp-faq {
|
||||
padding-top: 3em;
|
||||
padding-bottom: 3em;
|
||||
background-image: url(/customize/images/cover-faq.jpg);
|
||||
background-size: cover;
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
.container {
|
||||
color: #fff;
|
||||
font-family: "Open Sans";
|
||||
}
|
||||
h1 {
|
||||
font-weight: 700;
|
||||
}
|
||||
}
|
||||
|
||||
.cp-faq-ques-det {
|
||||
.cp-faq-header {
|
||||
a {
|
||||
padding: 0;
|
||||
h4 {
|
||||
margin-top: 1.5rem;
|
||||
margin-bottom: 1.5rem;
|
||||
.cp-brand-font {
|
||||
font-family: "Neuropolitical";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.cp-faq-container {
|
||||
.cp-faq-questions-items {
|
||||
background: #3a84b6;
|
||||
color: #fff;
|
||||
padding: 1rem 1rem 0.5rem 1rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
.cp-faq-questions-q {
|
||||
padding: 0;
|
||||
margin-bottom: 0.5rem;
|
||||
cursor: pointer;
|
||||
-webkit-touch-callout: none;
|
||||
-webkit-user-select: none;
|
||||
-khtml-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
&:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
&:after {
|
||||
content: '\f067';
|
||||
font-family: FontAwesome;
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
float: right;
|
||||
text-decoration: none;
|
||||
font-size: 13px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
}
|
||||
.cp-faq-questions-q.active-faq {
|
||||
&:after {
|
||||
content: '\f068';
|
||||
}
|
||||
}
|
||||
.cp-faq-questions-a {
|
||||
display: none;
|
||||
padding: 0.5rem;
|
||||
margin-bottom: 0.5rem;
|
||||
background-color: #fff;
|
||||
color: #212529;
|
||||
}
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue