Difference between revisions of "Team:XJTU-China"

Line 35: Line 35:
 
         <div class="container row">
 
         <div class="container row">
 
             <main class="banner">
 
             <main class="banner">
                 <div class="bannerImg segmenter"
+
                 <canvas id="canvas"></canvas>
                    style="background-image: url(https://static.igem.org/mediawiki/2021/6/67/T--XJTU-China--bg_home.jpg)">
+
                </div>
+
 
                 <h2 class="trigger-headline headline-left">Tryptophan</h2>
 
                 <h2 class="trigger-headline headline-left">Tryptophan</h2>
 
                 <h2 class="headline-right">iDream</h2>
 
                 <h2 class="headline-right">iDream</h2>
Line 273: Line 271:
 
         src="https://2021.igem.org/wiki/index.php?title=Template:XJTU-China/dialog&action=raw&ctype=text/javascript"></script>
 
         src="https://2021.igem.org/wiki/index.php?title=Template:XJTU-China/dialog&action=raw&ctype=text/javascript"></script>
  
 +
    <!-- flowing banner -->
 +
    <script>
 +
        var fBanner = (function () {
 +
            var canvas = document.getElementById("canvas");
 +
            var ctx = canvas.getContext("2d");
 +
 +
            w = ctx.canvas.width = 600;
 +
            h = ctx.canvas.height = 250;
 +
 +
            nt = 0;
 +
            particles = [];
 +
            hueBase = 0;
 +
 +
            class Particle {
 +
                constructor() {
 +
                    this.x = Math.random() * w;
 +
                    this.y = Math.random() * h;
 +
                    this.r = Math.random() * (90 - 10) + 10;
 +
                    this.h = Math.random() * 60;
 +
                }
 +
                move(i) {
 +
                    this.x += noise.perlin3(this.y / 400, i / 5, nt);
 +
                    this.y += noise.perlin3(this.x / 400, i / 5, nt);
 +
                }
 +
                draw() {
 +
                    ctx.beginPath();
 +
                    ctx.globalCompositeOperation = "lighter";
 +
                    ctx.filter = "blur(" + this.r + "px)";
 +
                    ctx.fillStyle = "hsl(" + (hueBase + this.h) + ", 100%, 50%)";
 +
                    ctx.arc(this.x, this.y, this.r, 0, Math.PI * 2);
 +
                    ctx.fill();
 +
                    ctx.closePath();
 +
                }
 +
                collision() {
 +
                    var ac = this.r + this.b;
 +
                    if (this.x - ac > w) {
 +
                        this.x = -ac;
 +
                    } else if (this.x + ac < 0) {
 +
                        this.x = w + ac - 1;
 +
                    }
 +
                    if (this.y - ac > h) {
 +
                        this.y = -ac;
 +
                    } else if (this.y + ac < 0) {
 +
                        this.y = h + ac - 1;
 +
                    }
 +
                }
 +
            }
 +
 +
            for (var i = 0; i < 15; i++) {
 +
                particles.push(new Particle());
 +
            }
 +
 +
            function render() {
 +
                ctx.clearRect(0, 0, w, h);
 +
                nt += 0.003;
 +
                particles.forEach((p, i) => {
 +
                    p.move(i);
 +
                    p.draw();
 +
                    p.collision();
 +
                });
 +
                requestAnimationFrame(render);
 +
            }
 +
            render();
 +
 +
            var mouseDown = false;
 +
            canvas.addEventListener('mousedown', function () { mouseDown = true })
 +
            canvas.addEventListener('mouseup', function () { mouseDown = false })
 +
            canvas.addEventListener('mousemove', function (e) {
 +
                if (!mouseDown) { return; }
 +
                hueBase = e.clientX / (w / 360);
 +
            })
 +
 +
            canvas.addEventListener('touchstart', function () { mouseDown = true })
 +
            canvas.addEventListener('touchend', function () { mouseDown = false })
 +
            canvas.addEventListener('touchmove', function (e) {
 +
                if (!mouseDown) { return; }
 +
                hueBase = e.touches[0].pageX / (w / 360);
 +
            })
 +
        })();
 +
    </script>
 
     <!--viewBtn-->
 
     <!--viewBtn-->
 
     <script>
 
     <script>
Line 327: Line 405:
 
         })();
 
         })();
 
     </script>
 
     </script>
    <!--Hin./ious-->
 
    <!-- <script>
 
        var fLetterAnimation = (function () {
 
            const effects = [
 
                {
 
                    options: {
 
                        shapeColors: ['red', '#000', '#fff'],
 
                        shapeFill: false,
 
                        shapeStrokeWidth: 10
 
                    },
 
                    hide: {
 
                        shapesAnimationOpts: {
 
                            duration: 250,
 
                            delay: (t, i) => i * 20,
 
                            easing: 'easeOutExpo',
 
                            translateX: () => [0, anime.random(-200, 200)],
 
                            translateY: () => [0, anime.random(-200, 200)],
 
                            scale: () => [randomBetween(0.2, 0.6), randomBetween(0.2, 0.6)],
 
                            rotate: () => [0, anime.random(-16, 16)],
 
                            opacity: [
 
                                { value: 1, duration: 1, easing: 'linear', delay: (t, i) => i * 20 },
 
                                { value: 0, duration: 150, delay: 100, easing: 'easeOutQuad' }
 
                            ]
 
                        }
 
                    },
 
                    show: {
 
                        lettersAnimationOpts: {
 
                            duration: 400,
 
                            delay: (t, i) => i * 60,
 
                            easing: 'easeOutExpo',
 
                            opacity: {
 
                                value: [0, 1],
 
                                duration: 100,
 
                                easing: 'linear'
 
                            },
 
                            translateY: (t, i) => i % 2 ? [anime.random(-350, -300), 0] : [anime.random(300, 350), 0]
 
                        },
 
                        shapesAnimationOpts: {
 
                            duration: 500,
 
                            delay: (t, i) => i * 30,
 
                            easing: 'easeOutExpo',
 
                            translateX: () => [0, anime.random(-200, 200)],
 
                            translateY: () => [0, anime.random(-200, 200)],
 
                            scale: () => [randomBetween(0.2, 0.6), randomBetween(0.2, 0.6)],
 
                            rotate: () => [0, anime.random(-16, 16)],
 
                            opacity: [
 
                                { value: 1, duration: 1, easing: 'linear' },
 
                                { value: 0, duration: 350, delay: 150, easing: 'easeOutQuad' }
 
                            ]
 
                        }
 
                    }
 
                }
 
            ];
 
 
            class Slideshow {
 
                constructor(el) {
 
                    this.DOM = {};
 
                    this.DOM.el = el;
 
                    this.DOM.words = Array.from(this.DOM.el.querySelectorAll('.trigger-headline'));
 
                    this.current = 0;
 
                    this.words = [];
 
                    this.DOM.words.forEach((word, pos) => {
 
                        this.words.push(new Word(word, effects[pos].options));
 
                    });
 
 
                    this.isAnimating = true;
 
                    this.words[this.current].show(effects[this.current].show).then(() => this.isAnimating = false);
 
                }
 
            }
 
 
            document.querySelector(".bannerHeader").innerHTML = "Tryptophan iDream";
 
 
            const slideshow = new Slideshow(document.querySelector(".banner"));
 
 
        })();
 
    </script> -->
 
 
     <!-- Dialog -->
 
     <!-- Dialog -->
 
     <script>
 
     <script>

Revision as of 09:11, 1 September 2021

Team:XJTU-China

Tryptophan

iDream

Brief Intro.

a tryptophan producer

Synthetic biology is a science discipline that differs a lot from the others. Usually, you would use the scientific method to obtain results in the majority of life sciences, centering your work on making observations and performing experiments. However, synthetic biology goes beyond that, it is all about constructing something new from parts (biological parts if you may). That is why, sometimes the engineering design process fits better with these projects, since a product has to be built, a machine that performs a task, where it is more important what it does rather than how, yet still has to be tested. Funnily enough, that's why iGEM stands for genetically engineered machines.

To close the menu, the menu icon needs to be clicked again. This menu is inspired by the left side menu found on YouTube. When clicking on the menu label and icon, the main menu appears beneath and the menu icon slides to the right side while the label slides up. To close the menu, the menu icon needs to be clicked again. This menu is inspired by the left side menu found on YouTube. When clicking on the menu label and icon, the main menu appears beneath and the menu icon slides to the right side while the label slides up. To close the menu, the menu icon needs to be clicked again. This menu is inspired by the left side menu found on YouTube. When clicking on the menu label and icon, To close the menu, the menu icon needs to be clicked again. This menu is inspired by the left side menu found on YouTube. When clicking on the menu label and icon,

the main menu appears beneath and the menu icon slides to the right side while the label slides up.o be clicked again. This menu is inspired by the left side menu found on YouTube. When clicking on the menu label and icon, the main menu appears beneath and the menu icon slides to the right side while the label slides up. To close the menu, the menu icon needs to be clicked again. This menu is inspired by the left side menu found on YouTube. When clicking on the menu label and icon, the main menu appears beneath and the menu icon slides to the right side while the label slides up. To close the menu, the menu icon needs to be clicked again. This menu is inspired by the left side menu found on YouTube. When clicking on the menu label and icon, the main menu appears beneath and the menu icon slides to the right side while the label slides up. the main menu appears beneath and the menu icon slides to the right side while the label slides up. To close the menu, the menu icon needs to be clicked again. This menu is inspired by the left side menu found on YouTube. When clicking on the menu label and icon, the main menu appears beneath and the menu icon slides to the right side while the label slides up.ide menu found on YouTube. When clicking on the menu label and icon, To close the menu, the menu icon needs to be clicked again. This menu is inspired by the left side menu found on YouTube. When clicking on the menu label and icon, the main menu appears beneath and the menu icon slides to the right side while the label slides up.


highlights

A lot of wonderful works

img25

XJTU-China

Click the view button to check our wonderful social interaction.

img26

XJTU-China

Click the view button to explore our interviews with well-respected experts.

why can't i see me

Howdy guys sadasd dsadsa sdad ad a dsad as d

Howdy guys sadasd dsadsa sdad ad a dsad as d

Howdy guys sadasd dsadsa sdad ad a dsad as d

Howdy guys sadasd dsadsa sdad ad a dsad as d

Howdy guys sadasd dsadsa sdad ad a dsad as d

Howdy guys sadasd dsadsa sdad ad a dsad as d

Howdy guys sadasd dsadsa sdad ad a dsad as d

Howdy guys sadasd dsadsa sdad ad a dsad as d

Haaaaa

why can't i see me

Howdy guys sadasd dsadsa sdad ad a dsad as d

Howdy guys sadasd dsadsa sdad ad a dsad as d

Howdy guys sadasd dsadsa sdad ad a dsad as d

Howdy guys sadasd dsadsa sdad ad a dsad as d

Howdy guys sadasd dsadsa sdad ad a dsad as d

Howdy guys sadasd dsadsa sdad ad a dsad as d

Howdy guys sadasd dsadsa sdad ad a dsad as d

Howdy guys sadasd dsadsa sdad ad a dsad as d

Haaaaa

contact us

Xi'an Jiaotong University
28 Xianning West Road
Xi'an, Shaanxi, China, 710049
xjtu_igem@xjtu.edu.cn

Made with ❤️ by