Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
start [2023/06/07 20:34] steve.wangstart [2023/06/08 18:55] (current) steve.wang
Line 3: Line 3:
 === A presentation of work by a group of students in experimental education in Taipei, Taiwan === === A presentation of work by a group of students in experimental education in Taipei, Taiwan ===
 <html> <html>
 +<meta property="og:image" content="https://renickbell.net/ed/2023light/lib/exe/fetch.php?media=logo.png" />
 <style> <style>
     .level4 {     .level4 {
Line 148: Line 149:
  
 let info=[{ let info=[{
-    imageSrc:'https://renickbell.net/ed/2023light/lib/exe/fetch.php?media=image-carosel-placeholder1.png', +    imageSrc:'https://renickbell.net/ed/2023light/lib/exe/fetch.php?media=image-carosel-photography-walk.png', 
-    portraitSrc:'https://renickbell.net/ed/2023light/lib/exe/fetch.php?media=image-carosel-placeholder1-potrait.png', +    portraitSrc:'https://renickbell.net/ed/2023light/lib/exe/fetch.php?media=portrait-image-carosel-photography-walk.png', 
-    href:'https://renickbell.net/ed/2022service/doku.php?id=about-students',+    href:'https://renickbell.net/ed/2023light/doku.php?id=photography-walk',
     description:'about our students',     description:'about our students',
 },{ },{
-    imageSrc:'https://renickbell.net/ed/2023light/lib/exe/fetch.php?media=image-carosel-placeholder2.png', +    imageSrc:'https://renickbell.net/ed/2023light/lib/exe/fetch.php?media=image-carosel-retail-spaces.png', 
-    portraitSrc:'https://renickbell.net/ed/2023light/lib/exe/fetch.php?media=image-carosel-placeholder2-potrait.png',+    portraitSrc:'https://renickbell.net/ed/2023light/lib/exe/fetch.php?media=portrait-image-carosel-retail-spaces.png', 
 +    href:'https://renickbell.net/ed/2023light/doku.php?id=retail-spaces', 
 +    description:'arduino', 
 +},{ 
 +    imageSrc:'https://renickbell.net/ed/2023light/lib/exe/fetch.php?media=image-carosel-social-experiment-design.png', 
 +    portraitSrc:'https://renickbell.net/ed/2023light/lib/exe/fetch.php?media=portrait-image-carosel-social-experiemnt-design.png', 
 +    href:'https://renickbell.net/ed/2023light/doku.php?id=experiment-design', 
 +    description:'arduino', 
 +},{ 
 +    imageSrc:'https://renickbell.net/ed/2023light/lib/exe/fetch.php?media=image-carosel-desing-for-influence.png', 
 +    portraitSrc:'https://renickbell.net/ed/2023light/lib/exe/fetch.php?media=portrait-image-carosel-desgin-for-influence.png', 
 +    href:'https://renickbell.net/ed/2023light/doku.php?id=design-influence', 
 +    description:'arduino', 
 +},{ 
 +    imageSrc:'https://renickbell.net/ed/2023light/lib/exe/fetch.php?media=image-carosel-buildng-uv-sensor.png', 
 +    portraitSrc:'https://renickbell.net/ed/2023light/lib/exe/fetch.php?media=portrait-image-carosel-building-uv-sensors.png', 
 +    href:'https://renickbell.net/ed/2023light/doku.php?id=uv-sensors', 
 +    description:'arduino', 
 +},{ 
 +    imageSrc:'https://renickbell.net/ed/2023light/lib/exe/fetch.php?media=image-carosel-landscape-art-photography.png', 
 +    portraitSrc:'https://renickbell.net/ed/2023light/lib/exe/fetch.php?media=portrait-image-carosel-art-photography.png', 
 +    href:'https://renickbell.net/ed/2023light/doku.php?id=photos-art', 
 +    description:'arduino', 
 +},{ 
 +    imageSrc:'https://renickbell.net/ed/2023light/lib/exe/fetch.php?media=image-carosel-landscape-generating-photos-with-code.png', 
 +    portraitSrc:'https://renickbell.net/ed/2023light/lib/exe/fetch.php?media=portrait-image-carosel-jimp.png', 
 +    href:'https://renickbell.net/ed/2023light/doku.php?id=generative-photos', 
 +    description:'arduino', 
 +},{ 
 +    imageSrc:'https://renickbell.net/ed/2023light/lib/exe/fetch.php?media=image-carosel-illustrating-light-with-code.png', 
 +    portraitSrc:'https://renickbell.net/ed/2023light/lib/exe/fetch.php?media=portrait-image-carosel-illustrating-light-with-code.png',
     href:'https://renickbell.net/ed/2022service/doku.php?id=arduino',     href:'https://renickbell.net/ed/2022service/doku.php?id=arduino',
     description:'arduino',     description:'arduino',
Line 577: Line 608:
  
 document.body.style.transitionProperty = 'opacity' document.body.style.transitionProperty = 'opacity'
-document.body.style.transitionDuration = '8s+document.body.style.transitionDuration = '4s
-let higs; +let higs;
 window.addEventListener("load", function(e){ window.addEventListener("load", function(e){
     document.body.style.opacity = '1'     document.body.style.opacity = '1'
Line 607: Line 638:
 //higs.autoScroller() //higs.autoScroller()
     setTimeout(()=>{     setTimeout(()=>{
-           //higs.carosel.style.width=document.getElementsByClassName('permalink')[0].getBoundingClientRect().right-higs.carosel.getBoundingClientRect().x+'px';      +           //higs.carosel.style.width=document.getElementsByClassName('permalink')[0].getBoundingClientRect().right-higs.carosel.getBoundingClientRect().x+'px';
       higs.carosel.style.width='80%'       higs.carosel.style.width='80%'
         higs.carosel.style.height=higs.mainImg1.getBoundingClientRect().height+'px'         higs.carosel.style.height=higs.mainImg1.getBoundingClientRect().height+'px'
Line 617: Line 648:
                 higs.carosel.style.height=higs.mainImg1.getBoundingClientRect().height+'px'                 higs.carosel.style.height=higs.mainImg1.getBoundingClientRect().height+'px'
                 higs.addSpaceAbove(2)                 higs.addSpaceAbove(2)
-            },300+                setTimeout(() => { 
-    },300)+                    higs.carosel.style.height=higs.mainImg1.getBoundingClientRect().height+'px' 
 +                }, 1000) 
 +            },700
 +    },400)
 }) })
  
Line 694: Line 728:
             }             }
             //adaptToOrientationChange()             //adaptToOrientationChange()
-        else{ +        else{
             //document.location.reload()             //document.location.reload()
             console.log('Resize detected: landscape mode')             console.log('Resize detected: landscape mode')
Line 718: Line 752:
             }             }
             //adaptToOrientationChange()             //adaptToOrientationChange()
-        else{ +        else{
             //document.location.reload()             //document.location.reload()
             console.log('Resize detected: landscape mode')             console.log('Resize detected: landscape mode')
Line 831: Line 865:
 */ */
  
-window.addEventListener('touchstart', handleTouchStart, false);        +window.addEventListener('touchstart', handleTouchStart, false);
 window.addEventListener('touchmove', handleTouchMove, false); window.addEventListener('touchmove', handleTouchMove, false);
  
-var xDown = null;                                                        +var xDown = null;
 var yDown = null; var yDown = null;
  
Line 840: Line 874:
   return evt.touches ||             // browser API   return evt.touches ||             // browser API
          evt.originalEvent.touches; // jQuery          evt.originalEvent.touches; // jQuery
-                                                     +
-                                                                         +
 function handleTouchStart(evt) { function handleTouchStart(evt) {
-    const firstTouch = getTouches(evt)[0];                                       +    const firstTouch = getTouches(evt)[0]; 
-    xDown = firstTouch.clientX;                                       +    xDown = firstTouch.clientX; 
-    yDown = firstTouch.clientY;                                       +    yDown = firstTouch.clientY; 
-};                                                 +}; 
-                                                                         +
 let swipeCooldown=false let swipeCooldown=false
 function handleTouchMove(evt) { function handleTouchMove(evt) {
Line 855: Line 889:
     }     }
 console.log('swipe 2') console.log('swipe 2')
-    var xUp = evt.touches[0].clientX;                                    +    var xUp = evt.touches[0].clientX;
     var yUp = evt.touches[0].clientY;     var yUp = evt.touches[0].clientY;
  
     var xDiff = xDown - xUp;     var xDiff = xDown - xUp;
     var yDiff = yDown - yUp;     var yDiff = yDown - yUp;
-                                                                         +
     if ( Math.abs( xDiff ) > Math.abs( yDiff ) ) {/*most significant*/     if ( Math.abs( xDiff ) > Math.abs( yDiff ) ) {/*most significant*/
         if ( xDiff > 0 && swipeCooldown==false) {         if ( xDiff > 0 && swipeCooldown==false) {
Line 870: Line 904:
                 swipeCooldown=false                 swipeCooldown=false
             },500)             },500)
-        } +        }
         else if (swipeCooldown==false) {         else if (swipeCooldown==false) {
             evt.preventDefault()             evt.preventDefault()
Line 879: Line 913:
                 swipeCooldown=false                 swipeCooldown=false
             },500)             },500)
-        }                       +        }
     } else {     } else {
         if ( yDiff > 0 ) {         if ( yDiff > 0 ) {
-        } else {  +        } else { 
-        }                                                                 +        }
     }     }
     /* reset values */     /* reset values */
     xDown = null;     xDown = null;
-    yDown = null;                                             +    yDown = null;
 }; };
  
Line 917: Line 951:
             margin: 3px;             margin: 3px;
         }         }
 +
 +        @media only screen and (max-width: 767px) {
 +            .button {
 +                width: 79%;
 +                height: 79%;
 +                background-color: none;
 +                position: relative;
 +                overflow: hidden;
 +                margin: 3px;
 +            }
 +            .title {
 +            font-family:'Arial', sans-serif;
 +            position: absolute;
 +            top:  1.7%;
 +            left: 10%;
 +            font-size: 10%;
 +            color: white;
 +            font-weight:650;
 +            }
 +        .description {
 +            line-height: 1.2;
 +            position: absolute;
 +            top: 150%;
 +            left: 10%;
 +            font-size: 20%;
 +            color: white;
 +            transition: top 0.45s ease-in-out;
 +            overflow-wrap: normal;
 +            word-break: normal;
 +            max-width: 330px;
 +        }
 +
 +        }
 +
  
         .image {         .image {
Line 1052: Line 1120:
  
 </html> </html>
- 
  
  • start.1686195278.txt.gz
  • Last modified: 2023/06/07 20:34
  • by steve.wang