<!DOCTYPE html> <html> <title>Web Page Design</title> <base href="https://www.highcharts.com/demo/line-basic" /> <head> <script src="https://code.highcharts.com/highcharts.js"></script> <style type="text/css"> div { width:100%; height:100%; background-color:red; border:1px solid black; } #div2 { transform:rotate(30deg); -ms-transform:rotate(30deg); /* IE 9 */ -moz-transform:rotate(30deg); /* Firefox */ -webkit-transform:rotate(30deg); /* Safari and Chrome */ -o-transform:rotate(30deg); /* Opera */ background-color:yellow; } </style> </head> <body> <div id="container"></div> <script> var arr = [ { ['2019/01', 43934], ['2019/02', 52503], ['2019/03', 57177], ['2019/04', 69658], ['2019/05', 97031], ['2019/06', 119931], ['2019/07', 137133], ['2019/08', 154175] }, { ['2019/01', 4334], ['2019/02', 5503], ['2019/03', 5177], ['2019/04', 6658], ['2019/05', 9031], ['2019/06', 19931], ['2019/07', 17133], ['2019/08', 14175] }, ]; Highcharts.chart('container', { title: { text: 'Solar Employment Growth by Sector, 2010-2016' }, subtitle: { text: 'Source: thesolarfoundation.com' }, xAxis: { title: { text: 'Number of Employees' }, labels: { formatter: function() { return arr[this.value][0]; } } }, legend: { layout: 'vertical', align: 'right', verticalAlign: 'middle' }, plotOptions: { series: { label: { connectorAllowed: false }, } }, series: [ { name: 'MBB', data: arr[0], }, { name: 'MBB 2', data: arr[1], } ], responsive: { rules: [{ condition: { maxWidth: 500 }, chartOptions: { legend: { layout: 'horizontal', align: 'center', verticalAlign: 'bottom' } } }] } }); </script> </body> </html>
<!doctype html> <html> <body> <canvas width = "570" height = "570" id = "my_Canvas"></canvas> <script> /*============== Creating a canvas ====================*/ var canvas = document.getElementById('my_Canvas'); gl = canvas.getContext('experimental-webgl'); /*======== Defining and storing the geometry ===========*/ var vertices = [ -0.5,0.5,0.0, -0.5,-0.5,0.0, 0.5,-0.5,0.0, ]; indices = [0,1,2]; // Create an empty buffer object to store vertex buffer var vertex_buffer = gl.createBuffer(); // Bind appropriate array buffer to it gl.bindBuffer(gl.ARRAY_BUFFER, vertex_buffer); // Pass the vertex data to the buffer gl.bufferData(gl.ARRAY_BUFFER, new Float32Array(vertices), gl.STATIC_DRAW); // Unbind the buffer gl.bindBuffer(gl.ARRAY_BUFFER, null); // Create an empty buffer object to store Index buffer var Index_Buffer = gl.createBuffer(); // Bind appropriate array buffer to it gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, Index_Buffer); // Pass the vertex data to the buffer gl.bufferData(gl.ELEMENT_ARRAY_BUFFER, new Uint16Array(indices), gl.STATIC_DRAW); // Unbind the buffer gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, null); /*================ Shaders ====================*/ // Vertex shader source code var vertCode = 'attribute vec3 coordinates;' + 'void main(void) {' + ' gl_Position = vec4(coordinates, 1.0);' + '}'; // Create a vertex shader object var vertShader = gl.createShader(gl.VERTEX_SHADER); // Attach vertex shader source code gl.shaderSource(vertShader, vertCode); // Compile the vertex shader gl.compileShader(vertShader); //fragment shader source code var fragCode = 'void main(void) {' + ' gl_FragColor = vec4(0.0, 0.0, 0.0, 0.1);' + '}'; // Create fragment shader object var fragShader = gl.createShader(gl.FRAGMENT_SHADER); // Attach fragment shader source code gl.shaderSource(fragShader, fragCode); // Compile the fragmentt shader gl.compileShader(fragShader); // Create a shader program object to store // the combined shader program var shaderProgram = gl.createProgram(); // Attach a vertex shader gl.attachShader(shaderProgram, vertShader); // Attach a fragment shader gl.attachShader(shaderProgram, fragShader); // Link both the programs gl.linkProgram(shaderProgram); // Use the combined shader program object gl.useProgram(shaderProgram); /*======= Associating shaders to buffer objects =======*/ // Bind vertex buffer object gl.bindBuffer(gl.ARRAY_BUFFER, vertex_buffer); // Bind index buffer object gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, Index_Buffer); // Get the attribute location var coord = gl.getAttribLocation(shaderProgram, "coordinates"); // Point an attribute to the currently bound VBO gl.vertexAttribPointer(coord, 3, gl.FLOAT, false, 0, 0); // Enable the attribute gl.enableVertexAttribArray(coord); /*=========Drawing the triangle===========*/ // Clear the canvas gl.clearColor(0.5, 0.5, 0.5, 0.9); // Enable the depth test gl.enable(gl.DEPTH_TEST); // Clear the color buffer bit gl.clear(gl.COLOR_BUFFER_BIT); // Set the view port gl.viewport(0,0,canvas.width,canvas.height); // Draw the triangle gl.drawElements(gl.TRIANGLES, indices.length, gl.UNSIGNED_SHORT,0); </script> </body> </html>
<html> <head> <script type = "text/javascript"> <!-- function sayHello() { alert("Hello World") } //--> <!-- var myVar = "global"; // Declare a global variable function checkscope( ) { var myVar = "local"; // Declare a local variable document.write(myVar); } //--> </script> </head> <body > <p></p> <input type = "button" onclick = "sayHello()" value = "Say Hello" /> <script language = "javascript" type = "text/javascript"> <!-- document.write("Hello World!") //--> <!-- var1 = 10; var2 = 20; //--> <!-- // This is a comment. It is similar to comments in C++ /* * This is a multi-line comment in JavaScript * It is very similar to comments in C Programming */ //--> <script language = 'javascript' type = "text/javascript"> var money, name; var name = "Ali"; var money; money = 2000.50; <script> <script language = 'javascript' type = "text/javascript"> <!-- var a = 33; var b = 10; var c = "Test"; var linebreak = "<br />"; document.write("a + b = "); result = a + b; document.write(result); document.write(linebreak); document.write("a - b = "); result = a - b; document.write(result); document.write(linebreak); document.write("a / b = "); result = a / b; document.write(result); document.write(linebreak); document.write("a % b = "); result = a % b; document.write(result); document.write(linebreak); document.write("a + b + c = "); result = a + b + c; document.write(result); document.write(linebreak); a = ++a; document.write("++a = "); result = ++a; document.write(result); document.write(linebreak); b = --b; document.write("--b = "); result = --b; document.write(result); document.write(linebreak); //--> </script> <p>This is web page body </p> </script> </body> </html>
<!DOCTYPE html> <html> <head> <title>8 ball pool</title> </head> <body> <canvas id="screen" width="2000" height="800"></canvas> </body> </html>
<!DOCTYPE html> <html> <title>Web Page Design</title> <head> <style type="text/css"> div { width:100px; height:75px; background-color:red; border:1px solid black; } #div2 { transform:rotate(30deg); -ms-transform:rotate(30deg); /* IE 9 */ -moz-transform:rotate(30deg); /* Firefox */ -webkit-transform:rotate(30deg); /* Safari and Chrome */ -o-transform:rotate(30deg); /* Opera */ background-color:yellow; } </style> </head> <body> <div>Hello, World!</div> <div id="div2">Hello, CSS3!</div> </body> </html>
<!DOCTYPE html> <html> <title>Web Page Design</title> <head> <style type="text/css"> div { width:100px; height:75px; background-color:red; border:1px solid black; } #div2 { transform:rotate(30deg); -ms-transform:rotate(30deg); /* IE 9 */ -moz-transform:rotate(30deg); /* Firefox */ -webkit-transform:rotate(30deg); /* Safari and Chrome */ -o-transform:rotate(30deg); /* Opera */ background-color:yellow; } </style> </head> <body> <div>Hello, World!</div> <div id="div2">Hello, CSS3!</div> </body> </html>
<html> <head> <title>Angular JS Services</title> <script src = "https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script> </head> <body> <h2>AngularJS Sample Application</h2> <div ng-app = "mainApp" ng-controller = "CalcController"> <p>Enter a number: <input type = "number" ng-model = "number" /></p> <button ng-click = "square()">X<sup>2</sup></button> <p>Result: {{result}}</p> </div> <script> var mainApp = angular.module("mainApp", []); mainApp.factory('MathService', function() { var factory = {}; factory.multiply = function(a, b) { return a * b } return factory; }); mainApp.service('CalcService', function(MathService) { this.square = function(a) { return MathService.multiply(a,a); } }); mainApp.controller('CalcController', function($scope, CalcService) { $scope.square = function() { $scope.result = CalcService.square($scope.number); } }); </script> </body> </html>
<html> <head> <title>AngularJS First Application</title> </head> <body> <h1>Sample Application</h1> <div ng-app = ""> <p>Enter your Name: <input type = "text"></p> <p>Hello <span ></span>!</p> </div> <script src = "https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"> </script> </body> </html>
<!DOCTYPE html> <html> <head> <title> asdf</title> </head> <body style="background-color:white"> <div style="width:100%; height:110px;background-color:grey; font-color:white"> <h1 style="text-align:center;">BLACKBERRY</h1> <div style="background-color:black;width:100%; height:5px;margin-top:10px;"></div> <span style="width:100%;height:10px;font-size:15px;padding-left:17%;">Notice</span> <span style="width:100%;height:10px;font-size:15px;padding-left:17%;">Berries</span> <span style="width:100%;height:10px;font-size:15px;padding-left:17%;">Calendar</span> <span style="width:100%;height:10px;font-size:15px;padding-left:18%;">Q&A</span> <div style="width:100%;height:5px;margin-top:4px;background-color:black;"></div> </div> <img src="https://st.depositphotos.com/1001069/4227/i/950/depositphotos_42278665-stock-photo-ripe-blackberry-fruits.jpg" alt="Blackberry" width="100%" height="100%"> <div style="margin-top:10px; margin-left:10px; font-size:50px;"><b>공지사항</b></div> </body> </html>
<!DOCTYPE html> <html> <head> <title> asdf</title> </head> <body style="background-color:white"> <div style="width:100%; height:110px;background-color:grey; font-color:white"> <h1 style="text-align:center;">BLACKBERRY</h1> <div style="background-color:black;width:100%; height:5px;margin-top:10px;"></div> <span style="width:100%;height:10px;font-size:15px;padding-left:17%;">Notice</span> <span style="width:100%;height:10px;font-size:15px;padding-left:17%;">Berries</span> <span style="width:100%;height:10px;font-size:15px;padding-left:17%;">Calendar</span> <span style="width:100%;height:10px;font-size:15px;padding-left:18%;">Q&A</span> <div style="width:100%;height:5px;margin-top:4px;background-color:black;"></div> </div> <img src="https://st.depositphotos.com/1001069/4227/i/950/depositphotos_42278665-stock-photo-ripe-blackberry-fruits.jpg" alt="Blackberry" width="100%" height="100%"> <div style="margin-top:10px; margin-left:10px; font-size:50px;"><b>공지사항</b></div> </body> </html>
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more