Difference between revisions of "Team:Greece/Project"

Line 286: Line 286:
  
 
<!-- Styling script -->
 
<!-- Styling script -->
 +
<script>
 +
 +
if(window.innerWidth > 1025){
 +
  if(window.innerWidth < 1367){
 +
    document.getElementById('f_circle_text').setAttribute('x', '-210');
 +
    document.getElementById('s_circle_text').setAttribute('x', '200');
 +
    document.getElementById('t_circle_text').setAttribute('x', '615');
 +
    console.log('Both ifs where run');
 +
  }
 +
  console.log('Only one if was run');
 +
}
 +
</script>
  
 
<script>
 
<script>
Line 307: Line 319:
 
delete element;
 
delete element;
  
if(window.innerWidth > 1025){
 
  if(window.innerWidth < 1367){
 
    document.getElementById('f_circle_text').setAttribute('x', '-210');
 
    document.getElementById('s_circle_text').setAttribute('x', '200');
 
    document.getElementById('t_circle_text').setAttribute('x', '615');
 
    console.log('Both ifs where run');
 
  }
 
  console.log('Only one if was run');
 
}
 
 
</script>
 
</script>
  
 
</body>
 
</body>
 
</html>
 
</html>

Revision as of 20:04, 5 September 2017

Loading...