Turnkey session 8: CSS
No edit summary
No edit summary
Line 1: Line 1:
<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 – 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>


<p class="warn">
<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> </p>
  <em>To make your experience more comfortable, we set the main tags mentioned in the video to the right bar menu of this mini
<style type="text/css">
    player. Choose the interesting subtitle on the list and immediately get to the exact theme timeplace in the video. Now
p.warn {
    you can pick any topic to be instructed without watching the whole video.</em>
opacity: 0.7;
</p>
text-align: justify;
width: 90%
}
#video12 {
  position: relative;
  padding-bottom: 10px;
}
#video12::after {
  content: "";
  display: table;
  clear: both;
}
#video12 iframe {
  width: 100%;
  min-width: 200px;
  max-width: 740px;
  height: 500px;
  float: left;
}


@media (max-width: 767px) {
<br>
  #video12 iframe {
    height: 180px;
  }
}


#video12 div {
<div class="video">
  float: left;
  <iframe width="740" height="500" src="https://www.youtube.com/embed/idNoJqqhcoE?rel=0&autoplay=0" frameborder="0" allowfullscreen></iframe>
  padding-left: 10px;
overflow-y: auto;
height: 500px;
}
span.time {
    display:block;
  padding: 2px 10px 2px 10px;
    padding-bottom: 0.5em;
    padding-top: 0.5em;
  opacity: 0.7;
}
span.time:hover {
  color: #0000FF;
  cursor: pointer;
}
span.time:focus {
  color: blue;
}
</style>
<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>
</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]]

Revision as of 22:37, 31 July 2018

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.

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.


This page was edited 89 days ago on 02/10/2024. What links here