This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.cd-top { | |
display: inline-block; | |
height: 40px; | |
width: 40px; | |
position: fixed; | |
bottom: 40px; | |
right: 10px; | |
-webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.05); | |
box-shadow: 0 0 10px rgba(0, 0, 0, 0.05); | |
/* image replacement properties */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="slider-item"> | |
<div class="slider-range"><input type="range"></div> | |
<div class="slider-label">1.1 Population dynamics</div> | |
</div> | |
<div class="slider-item"> | |
<div class="slider-range"><input type="range"></div> | |
<div class="slider-label">1.2 Migration</div> | |
</div> | |
<div class="slider-item"> | |
<div class="slider-range"><input type="range"></div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script | |
src="https://code.jquery.com/jquery-3.4.1.slim.min.js" | |
integrity="sha256-pasqAKBDmFT4eHoN2ndd6lN370kFiGUFyTiUHWhU7k8=" | |
crossorigin="anonymous"></script> | |
<script type="text/javascript"> | |
var SELECTORS = { | |
LABELS: '.modtype_label', | |
RANGES: 'input[type="range"]' | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media (min-width: 800px) { | |
.slider-item { | |
display: flex; | |
align-items: center; | |
margin-bottom: 0.5rem; } | |
.slider-item .slider-range { | |
flex: 0 0 220px; | |
max-width: 220px; | |
margin-right: 1rem; } | |
.slider-item .slider-label { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="moodlevideo fluid-width-video-wrapper"> | |
<iframe width="640" height="360" frameborder="0" allowfullscreen="true" | |
src="//player.vimeo.com/video/INSERTVIMEOID?api=1&player_id=vimeoplayer"></iframe> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{! | |
This file is part of Moodle - http://moodle.org/ | |
Moodle is free software: you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation, either version 3 of the License, or | |
(at your option) any later version. | |
Moodle is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
include __DIR__."/config.php"; | |
$PAGE->set_context(context_system::instance()); | |
$PAGE->set_url('/testsort.php'); | |
$PAGE->set_pagelayout('admin'); | |
echo $OUTPUT->header(); | |
echo $OUTPUT->heading('Sortable list examples'); | |
$dragdrop = $OUTPUT->render_from_template('core/drag_handle', ['movetitle' => get_string('move')]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "theme-reboost-tasks", | |
"version": "0.1.0", | |
"description": "Grunt tasks for Moodle Boost theme.", | |
"main": "Gruntfile.js", | |
"author": { | |
"name": "Bas Brands", | |
"url": "http://www.moodle.org" | |
}, | |
"devDependencies": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
module.exports = function(grunt) { | |
// Import modules. | |
var path = require("path"); | |
// PHP strings for exec task. | |
var moodleroot = path.dirname(path.dirname(__dirname)); | |
var dirrootopt = grunt.option("dirroot") || process.env.MOODLE_DIR || ""; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once("config.php"); | |
function course_image($courseid) { | |
global $DB, $CFG; | |
require_once($CFG->libdir. '/coursecatlib.php'); | |
$courserecord = $DB->get_record('course', array('id' => $courseid)); |
NewerOlder