Turnkey session 8: CSS
mNo edit summary
(Updated Edited template to July 12, 2025.)
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<message>Write the content here to display this box</message>
<html>
<html>
<h4> Session 8 – Here we take a look on how to define and set css styles in your application. You can have expressions that change the used style based on data in your model.</h4>
<h4> Session 8: Take a look at how to define and set CSS styles in your application. You can have expressions that change
  the used style based on data in your model.</h4>


<p>
<p class="video-warn">
<em>To make your experience more comfortable, we set the main tags mentioned in the video to the right bar menu of this mini player. Choose the interesting subtitle on the list and immediately get to the exact theme timeplace in the video. Now you can pick any topic to be instructed without watching the whole video.</em>
  <em>To make your experience smooth, we set the main tags mentioned in the video to the right bar menu of this mini-player. Choose an interesting subtitle on the list and immediately get to the exact theme navigation item place in the video. Now you can pick any topic to be instructed on without watching the whole video.</em>
<style type="text/css">
p {
opacity: 0.7;
text-align: justify;
width: 90%
}
</style>
</p>
</p>
<br>
<br>
<div id="video12">
 
<iframe width="740" height="500" src="https://www.youtube.com/embed/hd2tMSInhCQ?rel=0&autoplay=0" frameborder="0" allowfullscreen></iframe>
<div class="video">
  <iframe width="740" height="500" src="https://www.youtube.com/embed/idNoJqqhcoE?rel=0&autoplay=0" frameborder="0" allowfullscreen></iframe>
</div>
</div>


<script>
var IMG = document.querySelectorAll('#video12 span'),
    IFRAME = document.querySelector('#video12 iframe');
for (var i = 0; i < IMG.length; i++) {
  IMG[i].onclick = function() {
    IFRAME.src = 'https://www.youtube.com/embed/' + this.dataset.video + '?rel=0&autoplay=1';
    if(this.dataset.end) IFRAME.src = IFRAME.src.replace(/([\s\S]*)/g, '$1&end=' + this.dataset.end);
    if(this.dataset.start) IFRAME.src = IFRAME.src.replace(/([\s\S]*)/g, '$1&start=' + this.dataset.start);
    this.style.backgroundColor='rgba(0,0,0,.2)';
  }
}
</script>
</html>
</html>
[[Category:UI]]
[[Category:UI]]
Line 35: Line 21:
[[Category:CSS]]
[[Category:CSS]]
[[Category:Content Override]]
[[Category:Content Override]]
{{Edited|July|12|2025}}

Latest revision as of 06:05, 20 January 2025

This page was created by Alexandra on 2017-01-22. Last edited by Edgar on 2025-01-20.


Session 8: Take a look at how to define and set CSS styles in your application. You can have expressions that change the used style based on data in your model.

To make your experience smooth, we set the main tags mentioned in the video to the right bar menu of this mini-player. Choose an interesting subtitle on the list and immediately get to the exact theme navigation item place in the video. Now you can pick any topic to be instructed on without watching the whole video.