<div id="container" data-section="home">
<div class="active section " data-page="1" data-homepage="">
<section class="home" >
- <h1>The Bona 100‑year</h1>
+ <h1>The Bona 100–year</h1>
<h2>anniversary quiz</h2>
<h3>Think you know Bona?<br>Put it to the test by taking part in our short quiz.</h3>
<a href="#" class="btn-next button start">Start</a>
$(window).on('resize', resize);
$(window).on('orientationchange', function () {
- console.log('orientation');
+ // console.log('orientation');
resize();
setTimeout(function () {
let circleSens = 1; // Détermine le sens de direction du cercle --> 2 Valeur possibles : 1 = dans le sens des aiguilles d'une montre OU 2 = sens inverse
- let donutSize = 0.84; // Creer un effet de donut's --> Les valeurs vont de 0 à 1, --> valeur 0 annule l'effet de donut's
+ let donutSize = 0.85; // Creer un effet de donut's --> Les valeurs vont de 0 à 1, --> valeur 0 annule l'effet de donut's
let animationDuration = 5; // Durée en seconde de l'animation
// choose percent radius of the donut circle
function updateAngle() {
- console.log('angle = ', window.angle);
+ // console.log('angle = ', window.angle);
paper.clear();
sector(paper, paperWidth / 2, paperHeight / 2, paperRadius, donutRadius, window.angle, window.angleEnd, {
fill: color,
}
//startAngle = 90;
//console.log('startAngle = ', startAngle);
- console.log('endAngle = ',endAngle);
+ // console.log('endAngle = ',endAngle);
// init radian
let rad = Math.PI / 180;
// first circle (bigger)
function displayProgress() {
if ($('.section:visible').data("page") === 1) {
- console.log('data-page =', $(this).attr('data-page'));
+ // console.log('data-page =', $(this).attr('data-page'));
$('.progressbar').css('display', 'none');
} else {
$('.progressbar').css('display', 'block');
baseWidth += gutter * 2;
baseHeight += gutter * 2;
- console.log(baseWidth, baseHeight);
+ // console.log(baseWidth, baseHeight);
// Work out how much content needs to be scaled down, if at all
scale = Math.min(1, ww / baseWidth, wh / baseHeight);
box-sizing: border-box
font-weight: 300
-@font-face
- font-family: Helvetica
- src: url("../HelveticaNeueLight.woff")
-
html
- font-family: Helvetica, sans-serif
+ font-family: roboto, sans-serif
height: 100%
max-height: 100%
font-size: 16px
body
- font-family: Helvetica, sans-serif
+ font-family: roboto, sans-serif
font-size: rem(30)
height: 100%
max-height: 100%
left: 50%
transform: translateX(-50%)
transform-origin: top center
+ overflow: hidden
//width: 100%
.active
font-size: rem(30)
.correctAnswer
+ cursor: auto !important
margin-top: 1em
background: $green
font-size: rem(25)
.answerCircle
- border: solid 3px $green !important
+ border: solid 8px $green !important
margin-top: 50px
+ cursor: auto !important
#ResultsDesc
margin: 2em 0
svg
position: absolute !important
- top: 0
+ top: 0 !important
left: 50% !important
transform: translateX(-50%)
justify-content: center
align-items: center
border: 5px solid rgba(255, 255, 255, 0.3)
-
.inner
+ font-size: 85px
color: $darkblue
- font-size: rem(30)
.home
@include breakpoint