Turnkey session 3: Opting out actions
No edit summary
No edit summary
Line 1: Line 1:
<html>
<html>
<h4> In this session we talk about opting out actions so that only the relevant actions are available for the user. I also show how to place the global actions in sub menus to build a complete menu bar. Further more class Constraints are explained and we look on how they can be used to make user aware of rules that they should obey. The concept of DefaultStringRepresentation of objects is also shown. </h4>
<h4> In this session we talk about opting out actions so that only the relevant actions are available for the user. I also show
  how to place the global actions in sub menus to build a complete menu bar. Further more class Constraints are explained
  and we look on how they can be used to make user aware of rules that they should obey. The concept of DefaultStringRepresentation
  of objects is also shown. </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 navigation-itemplace in the
p.warn {
    video. Now 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) {
<div class="video">
  #video12 iframe {
   <div class="video__wrapper">
    height: 180px;
    <iframe src="https://www.youtube.com/embed/uz_8q4a_p78?rel=0&autoplay=0" frameborder="0" allowfullscreen></iframe>
  }
  </div>
}
   <div class="video__navigation">
 
     <span class="navigation-item" data-video="uz_8q4a_p78" data-start="50" tabindex="0"> Opt Out Action </span>
#video12 div {
     <span class="navigation-item" data-video="uz_8q4a_p78" data-start="81" tabindex="0"> Global actions in sub menus </span>
  float: left;
     <span class="navigation-item" data-video="uz_8q4a_p78" data-start="151" tabindex="0"> Constraints </span>
   padding-left: 10px;
     <span class="navigation-item" data-video="uz_8q4a_p78" data-start="295" tabindex="0"> DefaultStringRepresentation </span>
overflow-y: auto;
  </div>
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/uz_8q4a_p78?rel=0&autoplay=0" frameborder="0" allowfullscreen></iframe>
   <div>
     <span class="time" data-video="uz_8q4a_p78" data-start="50" tabindex="0"> Opt Out Action </span>
     <span class="time" data-video="uz_8q4a_p78" data-start="81" tabindex="0"> Global actions in sub menus </span>
     <span class="time" data-video="uz_8q4a_p78" data-start="151" tabindex="0"> Constraints </span>
     <span class="time" data-video="uz_8q4a_p78" data-start="295" tabindex="0"> DefaultStringRepresentation </span>
</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>



Revision as of 22:15, 31 July 2018

In this session we talk about opting out actions so that only the relevant actions are available for the user. I also show how to place the global actions in sub menus to build a complete menu bar. Further more class Constraints are explained and we look on how they can be used to make user aware of rules that they should obey. The concept of DefaultStringRepresentation of objects is also shown.

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 navigation-itemplace in the video. Now you can pick any topic to be instructed without watching the whole video.

Opt Out Action Global actions in sub menus Constraints DefaultStringRepresentation

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