HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
Any URLs added here will be added as <link>
s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
Any URL's added here will be added as <script>
s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
Search for and use JavaScript packages from npm here. By selecting a package, an import
statement will be added to the top of the JavaScript editor for this package.
Using packages here is powered by Skypack, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ES6 import
usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<html lang="en">
<head>
<!-- ΚΕ.ΠΛΗ.ΝΕ.Τ ΞΑΝΘΗΣ - No Copyright -->
<title>Bootstrap Θέμα - Το Σχολείο μου</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<!-- Google fonts -->
<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet" type="text/css">
<!-- jquery-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script>
<!-- Bootstrap javascript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<!-- Angularjs -->
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
<!-- CSS Ιστοσελίδας -->
<style>
body {
font: 400 15px/1.8 Lato, sans-serif;
color: #777;
}
h3, h4 {
margin: 10px 0 30px 0;
letter-spacing: 10px;
font-size: 20px;
color: #3498DB;
}
.container {
padding: 80px 120px;
}
.carousel-inner img {
width: 100%;
margin: auto;
}
.carousel-caption h3 {
background-color: #3498DB;
color: #fff;
padding: 20px;
opacity: 0.9;
}
@media (max-width: 600px) {
.carousel-caption {
display: none;
}
}
.bg-1 {
background: #3498DB;
color: #fff;
}
.bg-1 h3 {color: #fff;}
.bg-1 p {font-style: italic;}
.thumbnail {
padding: 0 0 15px 0;
border: none;
border-radius: 0;
}
.thumbnail p {
margin-top: 15px;
color: #555;
}
.btn {
padding: 10px 20px;
background-color: #3498DB;
color: #f1f1f1;
border-radius: 0;
transition: .2s;
}
.btn:hover, .btn:focus {
border: 1px solid #333;
background-color: #fff;
color: #000;
}
.modal-header, h4, .close {
background-color: #333;
color: #fff !important;
text-align: center;
font-size: 30px;
}
.modal-header, .modal-body {
padding: 40px 50px;
}
.nav-tabs li a {
color: #3498DB;
}
#googleMap {
width: 100%;
height: 400px;
-webkit-filter: grayscale(100%);
filter: grayscale(100%);
}
.navbar {
font-family: Montserrat, sans-serif;
margin-bottom: 0;
background-color: #3498DB;
border: 0;
font-size: 11px !important;
letter-spacing: 4px;
opacity: 0.9;
}
.navbar li a, .navbar .navbar-brand {
color: #fff !important;
}
.navbar-nav li a:hover {
color: #ccc !important;
}
.navbar-nav li.active a {
color: #fff !important;
background-color: #29292c !important;
}
.navbar-default .navbar-toggle {
border-color: transparent;
}
footer {
background-color: #3498DB;
color: #ffffff;
padding: 32px;
}
footer a {
color: #ffffff;
}
footer a:hover {
color: #666666;
text-decoration: none;
}
.form-control {
border-radius: 0;
}
textarea {
resize: none;
}
</style>
</head>
<!-- Δηλώνουμε την app για την Angularjs -->
<body ng-app="myApp" ng-controller="Ctrlit" id="start" data-spy="scroll" data-target=".navbar" data-offset="50">
<!-- Μενού -->
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#start">10ο ΓΥΜΝΑΣΙΟ ΞΑΝΘΗΣ</a>
</div>
<div class="collapse navbar-collapse" id="myNavbar">
<!-- Μεταβλητές id και name για τη δημιουργία του μενού Angularjs -->
<ul ng-repeat="x in menu | orderBy : 'key' : true" class="nav navbar-nav navbar-right">
<li><a href="{{ x.id }}">{{ x.name }}</a></li>
</ul>
</div>
</div>
</nav>
<!-- Carousel -->
<div id="myCarousel" class="carousel slide" data-ride="carousel">
<!-- Wrapper for slides -->
<div class="carousel-inner" role="listbox">
<div class="item active">
<img src="http://infolesson.com/wp-content/uploads/2016/10/stuttgart-1598427_1920.jpg" alt="image1" >
<div class="carousel-caption">
<h3>ΜΑΘΕΤΕ ΜΑΖΙ ΜΑΣ!</h3>
</div>
</div>
<div class="item">
<img src="http://infolesson.com/wp-content/uploads/2016/10/mit-198486_1920.jpg" alt="image2" >
<div class="carousel-caption">
<h3>ΓΝΩΣΗ ΧΩΡΙΣ ΟΡΙΑ!</h3>
</div>
</div>
<div class="item">
<img src="http://infolesson.com/wp-content/uploads/2016/10/hallway-802068_1920.jpg" alt="image3">
<div class="carousel-caption">
<h3>Η ΜΑΘΗΣΗ ΜΑΣ ΚΑΝΕΙ ΠΙΟ ΔΥΝΑΤΟΥΣ!</h3>
</div>
</div>
</div>
<a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">ΠΡΟΗΓΟΥΜΕΝΟ</span>
</a>
<a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">ΕΠΟΜΕΝΟ</span>
</a>
</div>
<!-- Τμήμα 1 - ΤΟ ΣΧΟΛΕΙΟ ΜΑΣ -->
<div id="school" class="container text-center">
<h3>ΤΟ ΣΧΟΛΕΙΟ ΜΑΣ</h3>
<p><em>Καλώς ήρθατε στον δικτυακό τόπο του σχολείου μας!</em></p>
<p> Ανήκει στη Διεύθυνση Δευτεροβάθμιας Εκπαίδευσης Ξάνθης. Υπάγεται στην Α΄περιοχή και μοριοδοτείται με 3 μόρια. Το 10ο Γυμνάσιο Ξάνθης ιδρύθηκε το 1998. Το 2005 μεταφέρθηκε στην περιοχή Ανω Ραχούλα της Ξάνθης. Στο Γυμνάσιο λειτουργούν αυτή τη στιγμή 12 τμήματα με 300 παιδιά που ανήκουν σε όλα τα κοινωνικά στρώματα.</p>
<br>
<div class="row">
<!-- Μεταβλητές id,image,title για τη δημιουργία της ενότητας του υλικού του σχολείου Angularjs -->
<div ng-repeat="x in school" class="col-sm-4">
<a href="#{{ x.id }}" data-toggle="collapse">
<img src="{{ x.img }}" class="img-circle person" alt="Random Name" width="255" height="255">
</a>
<div id="{{ x.id }}" class="collapse">
<p>{{ x.title }}</p>
</div>
</div>
</div>
</div>
<!-- Τμήμα 2 - ΔΡΑΣΤΗΡΙΟΤΗΤΕΣ -->
<div id="action" class="bg-1">
<div class="container">
<h3 class="text-center">ΔΡΑΣΤΗΡΙΟΤΗΤΕΣ</h3>
<p class="text-center">Δείτε τις δραστηριότητες του σχολείου μας!</p>
<div class="row text-center">
<!-- Μεταβλητές date,image,title για τη δημιουργία της ενότητας των δραστηριοτήτων του σχολείου Angularjs -->
<div ng-repeat="x in action" class="col-sm-4">
<div class="thumbnail">
<img src="{{ x.img }}" alt="image1" height="250">
<p><strong>{{ x.title }}</strong></p>
<p>{{ x.date }}</p>
<button class="btn" data-toggle="modal" data-target="#myModal">ΔΕΙΤΕ!</button>
</div>
</div>
</div>
</div>
<!-- Παράθυρο Modal με responsive βίντεο -->
<div class="modal fade" id="myModal" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4> Βίντεο</h4>
</div>
<div class="modal-body">
<div class="embed-responsive embed-responsive-16by9">
<iframe class="embed-responsive-item" src="https://player.vimeo.com/external/166339039.sd.mp4?s=a8880de7f67290441903e38283610258f8eccf82"></iframe>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Τμήμα 3 - ΕΠΙΚΟΙΝΩΝΙΑ -->
<div id="info" class="container">
<h3 class="text-center">ΕΠΙΚΟΙΝΩΝΙΑ</h3>
<div class="row">
<div class="col-md-4">
<p><span class="glyphicon glyphicon-map-marker"></span>ΞΑΝΘΗ, ΕΛΛΑΔΑ</p>
<p><span class="glyphicon glyphicon-phone"></span>ΤΗΛΕΦΩΝΟ: +00 1111111111</p>
<p><span class="glyphicon glyphicon-envelope"></span>Email: [email protected]</p>
</div>
<div class="col-md-8">
<div class="row">
<div class="col-sm-6 form-group">
<input class="form-control" id="name" name="name" placeholder="Name" type="text" required>
</div>
<div class="col-sm-6 form-group">
<input class="form-control" id="email" name="email" placeholder="Email" type="email" required>
</div>
</div>
<textarea class="form-control" id="comments" name="comments" placeholder="Comment" rows="5"></textarea>
<br>
<div class="row">
<div class="col-md-12 form-group">
<button class="btn pull-right" type="submit">ΑΠΟΣΤΟΛΗ</button>
</div>
</div>
</div>
</div>
</div>
<div id="googleMap"></div>
<!-- Google Maps -->
<script src="https://maps.googleapis.com/maps/api/js"></script>
<script>
var myCenter = new google.maps.LatLng(41.1299886, 24.8864193);
function initialize() {
var mapProp = {
center:myCenter,
zoom:15,
scrollwheel:false,
draggable:false,
mapTypeId:google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById("googleMap"),mapProp);
var marker = new google.maps.Marker({
position:myCenter,
});
marker.setMap(map);
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>
<!-- Footer -->
<footer class="text-center">
<a class="up-arrow" href="#start" data-toggle="tooltip" title="TO TOP">
<span class="glyphicon glyphicon-chevron-up"></span>
</a><br><br>
<p>Bootstrap Θέμα απο το <a href="http://infolesson.com" data-toggle="tooltip" title="infolesson.com">Infolesson.com</a></p>
</footer>
<!-- jquery scroll-->
<script>
$(document).ready(function(){
// Initialize Tooltip
$('[data-toggle="tooltip"]').tooltip();
// Add smooth scrolling to all links in navbar + footer link
$(".navbar a, footer a[href='#start']").on('click', function(event) {
// Prevent default anchor click behavior
event.preventDefault();
// Store hash
var hash = this.hash;
// Using jQuery's animate() method to add smooth page scroll
// The optional number (900) specifies the number of milliseconds it takes to scroll to the specified area
$('html, body').animate({
scrollTop: $(hash).offset().top
}, 900, function(){
// Add hash (#) to URL when done scrolling (default click behavior)
window.location.hash = hash;
});
});
})
</script>
<!-- Δεδομένα του controller 'Ctrlit' για τα αντικείμενα menu, school, action Angularjs -->
<script>
angular.module('myApp', []).controller('Ctrlit', function($scope) {
$scope.menu = [
{
key: '1',
name: 'ΑΡΧΙΚΗ',
id: '#start'
},
{
key: '2',
name: 'ΤΟ ΣΧΟΛΕΙΟ ΜΑΣ',
id: '#school'
},
{
key: '3',
name: 'ΔΡΑΣΤΗΡΙΟΤΗΤΕΣ',
id: '#action'
},
{
key: '4',
name: 'ΠΛΗΡΟΦΟΡΙΕΣ',
id: '#info'
}
] ;
$scope.school = [
{
id: 'demo',
title: 'ΒΙΒΛΙΟΘΗΚΗ',
img: 'http://infolesson.com/wp-content/uploads/2016/10/stuttgart-1598427_1920.jpg'
},
{
id: 'demo2',
title: 'ΚΤΗΡΙΟ',
img: 'http://infolesson.com/wp-content/uploads/2016/10/mit-198486_1920.jpg'
},
{
id: 'demo3',
title: 'ΑΙΘΟΥΣΑ ΔΙΔΑΣΚΑΛΙΑΣ',
img: 'http://infolesson.com/wp-content/uploads/2016/10/hallway-802068_1920.jpg'
}
] ;
$scope.action = [
{
id: '#myModal',
title: 'Γιορτή 25 Μαρτίου',
date: '25 Μαρτίου 2015',
img: 'http://infolesson.com/wp-content/uploads/2016/10/kuwait-252613_960_7201.jpg'
},
{
id: '#myModal',
title: 'Εκδρομή στην Αθήνα',
date: '25 Απριλίου 2015',
img: 'http://infolesson.com/wp-content/uploads/2016/10/kuwait-252613_960_7201.jpg'
},
{
id: '#myModal',
title: 'Γιορτή 28 Οκτωβρίου',
date: '28 Οκτωβρίου 2015',
img: 'http://infolesson.com/wp-content/uploads/2016/10/kuwait-252613_960_7201.jpg'
},
{
id: '#myModal',
title: 'Γιορτή 25 Μαρτίου',
date: '25 Μαρτίου 2015',
img: 'http://infolesson.com/wp-content/uploads/2016/10/kuwait-252613_960_7201.jpg'
},
{
id: '#myModal',
title: 'Εκδρομή στην Αθήνα',
date: '25 Απριλίου 2015',
img: 'http://infolesson.com/wp-content/uploads/2016/10/kuwait-252613_960_7201.jpg'
},
{
id: '#myModal',
title: 'Γιορτή 28 Οκτωβρίου',
date: '28 Οκτωβρίου 2015',
img: 'http://infolesson.com/wp-content/uploads/2016/10/kuwait-252613_960_7201.jpg'
},
{
id: '#myModal',
title: 'Γιορτή 25 Μαρτίου',
date: '25 Μαρτίου 2015',
img: 'http://infolesson.com/wp-content/uploads/2016/10/kuwait-252613_960_7201.jpg'
},
{
id: '#myModal',
title: 'Εκδρομή στην Αθήνα',
date: '25 Απριλίου 2015',
img: 'http://infolesson.com/wp-content/uploads/2016/10/kuwait-252613_960_7201.jpg'
},
{
id: '#myModal',
title: 'Γιορτή 28 Οκτωβρίου',
date: '28 Οκτωβρίου 2015',
img: 'http://infolesson.com/wp-content/uploads/2016/10/kuwait-252613_960_7201.jpg'
}
] ;
});
</script>
</body>
</html>
Also see: Tab Triggers