{"id":5088,"date":"2012-03-28T09:50:24","date_gmt":"2012-03-28T02:50:24","guid":{"rendered":"http:\/\/www.arit.rmutp.ac.th\/kms\/?p=5088"},"modified":"2013-09-20T15:43:18","modified_gmt":"2013-09-20T08:43:18","slug":"%e0%b8%a7%e0%b8%b4%e0%b9%88%e0%b8%87%e0%b9%80%e0%b8%94%e0%b8%b4%e0%b8%99%e0%b8%ab%e0%b8%99%e0%b9%89%e0%b8%b2%e0%b8%96%e0%b8%ad%e0%b8%a2%e0%b8%ab%e0%b8%a5%e0%b8%b1%e0%b8%87-html5","status":"publish","type":"post","link":"https:\/\/arit.rmutp.ac.th\/kms\/%e0%b8%a7%e0%b8%b4%e0%b9%88%e0%b8%87%e0%b9%80%e0%b8%94%e0%b8%b4%e0%b8%99%e0%b8%ab%e0%b8%99%e0%b9%89%e0%b8%b2%e0%b8%96%e0%b8%ad%e0%b8%a2%e0%b8%ab%e0%b8%a5%e0%b8%b1%e0%b8%87-html5\/","title":{"rendered":"\u0e27\u0e34\u0e48\u0e07\u0e40\u0e14\u0e34\u0e19\u0e2b\u0e19\u0e49\u0e32\u0e16\u0e2d\u0e22\u0e2b\u0e25\u0e31\u0e07 HTML5"},"content":{"rendered":"<p style=\"text-align: center\"><a href=\"http:\/\/www.arit.rmutp.ac.th\/kms\/wp-content\/uploads\/2012\/08\/HTML5_Logo.jpg\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-4888\" style=\"border: 0px none\" alt=\"\" src=\"http:\/\/www.arit.rmutp.ac.th\/kms\/wp-content\/uploads\/2012\/08\/HTML5_Logo.jpg\" width=\"184\" height=\"184\" srcset=\"https:\/\/arit.rmutp.ac.th\/kms\/wp-content\/uploads\/2012\/08\/HTML5_Logo.jpg 512w, https:\/\/arit.rmutp.ac.th\/kms\/wp-content\/uploads\/2012\/08\/HTML5_Logo-150x150.jpg 150w, https:\/\/arit.rmutp.ac.th\/kms\/wp-content\/uploads\/2012\/08\/HTML5_Logo-300x300.jpg 300w\" sizes=\"(max-width: 184px) 100vw, 184px\" \/><\/a><\/p>\n<p style=\"text-align: right\">\u0e42\u0e14\u0e22 \u0e2a\u0e21\u0e42\u0e20\u0e0a\u0e19\u0e4c \u0e01\u0e38\u0e25\u0e18\u0e32\u0e23\u0e32\u0e23\u0e21\u0e13\u0e4c<\/p>\n<p style=\"text-align: center\"><!--more--><\/p>\n<p>&lt;!DOCTYPE HTML&gt;<\/p>\n<p>&lt;html&gt;<br \/>\n&lt;head&gt;<br \/>\n&lt;style&gt;<br \/>\nbody {\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 margin: 0px;\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 padding: 0px;\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 }<br \/>\n#myCanvas {\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 border: 1px solid #9C9898;\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 }<br \/>\n&lt;\/style&gt;<br \/>\n&lt;script&gt;<br \/>\nwindow.requestAnimFrame = (function(callback)<br \/>\n{<br \/>\nreturn window.requestAnimationFrame ||<br \/>\nwindow.webkitRequestAnimationFrame ||<br \/>\nwindow.mozRequestAnimationFrame ||<br \/>\nwindow.oRequestAnimationFrame ||<br \/>\nwindow.msRequestAnimationFrame ||<br \/>\nfunction(callback){<br \/>\nwindow.setTimeout(callback, 1000 \/ 60);<br \/>\n};<br \/>\n})();<br \/>\nfunction animate(myRectangle)<br \/>\n{<br \/>\nvar canvas = document.getElementById(\u201cmyCanvas\u201d);<br \/>\nvar context = canvas.getContext(\u201c2d\u201d);\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \/\/ update<br \/>\nvar date = new Date();<br \/>\nvar time = date.getTime();<br \/>\nvar amplitude = 150;<br \/>\nvar period = 2000; \/\/ in ms<br \/>\nvar centerX = canvas.width \/ 2 \u2013 myRectangle.width \/ 2;<br \/>\nvar nextX = amplitude * Math.sin(time * 2 * Math.PI \/ period) + centerX;<br \/>\nmyRectangle.x = nextX;\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \/\/ clear<br \/>\ncontext.clearRect(0, 0, canvas.width, canvas.height);\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \/\/ draw<br \/>\ncontext.beginPath();<br \/>\ncontext.rect(myRectangle.x, myRectangle.y, myRectangle.width, myRectangle.height);<br \/>\ncontext.fillStyle = \u201c#8ED6FF\u201d;<br \/>\ncontext.fill();<br \/>\ncontext.lineWidth = myRectangle.borderWidth;<br \/>\ncontext.strokeStyle = \u201cblack\u201d;<br \/>\ncontext.stroke();\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \/\/ request new frame<br \/>\nrequestAnimFrame(function()<br \/>\n{<br \/>\nanimate(myRectangle);\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 });<br \/>\n}<\/p>\n<p>window.onload = function()<br \/>\n{<br \/>\nvar myRectangle =<br \/>\n{<br \/>\nx: 250,\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 y: 70,\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 width: 100,\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 height: 50,\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 borderWidth: 5<br \/>\n};<br \/>\nanimate(myRectangle);<br \/>\n};<br \/>\n&lt;\/script&gt;<br \/>\n&lt;\/head&gt;<br \/>\n&lt;body onmousedown=\u201dreturn false;\u201d&gt;<br \/>\n&lt;canvas id=\u201dmyCanvas\u201d width=\u201d578\u2033 height=\u201d200\u2033&gt;<br \/>\n&lt;\/canvas&gt;<br \/>\n&lt;\/body&gt;<br \/>\n&lt;\/html&gt;<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: center\"><a href=\"http:\/\/www.arit.rmutp.ac.th\/kms\/wp-content\/uploads\/2012\/08\/os.jpg\"><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter size-full wp-image-5089\" style=\"border: 0px none\" alt=\"\" src=\"http:\/\/www.arit.rmutp.ac.th\/kms\/wp-content\/uploads\/2012\/08\/os.jpg\" width=\"533\" height=\"266\" srcset=\"https:\/\/arit.rmutp.ac.th\/kms\/wp-content\/uploads\/2012\/08\/os.jpg 533w, https:\/\/arit.rmutp.ac.th\/kms\/wp-content\/uploads\/2012\/08\/os-300x149.jpg 300w\" sizes=\"(max-width: 533px) 100vw, 533px\" \/><\/a><\/p>\n<hr \/>\n","protected":false},"excerpt":{"rendered":"<p>\u0e42\u0e14\u0e22 \u0e2a\u0e21\u0e42\u0e20\u0e0a\u0e19\u0e4c \u0e01\u0e38\u0e25\u0e18\u0e32\u0e23\u0e32\u0e23\u0e21\u0e13\u0e4c<\/p>\n","protected":false},"author":1,"featured_media":5689,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[3],"tags":[],"class_list":["post-5088","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-3"],"rttpg_featured_image_url":{"full":["https:\/\/arit.rmutp.ac.th\/kms\/wp-content\/uploads\/2012\/03\/index.jpg",289,174,false],"landscape":["https:\/\/arit.rmutp.ac.th\/kms\/wp-content\/uploads\/2012\/03\/index.jpg",289,174,false],"portraits":["https:\/\/arit.rmutp.ac.th\/kms\/wp-content\/uploads\/2012\/03\/index.jpg",289,174,false],"thumbnail":["https:\/\/arit.rmutp.ac.th\/kms\/wp-content\/uploads\/2012\/03\/index-150x150.jpg",150,150,true],"medium":["https:\/\/arit.rmutp.ac.th\/kms\/wp-content\/uploads\/2012\/03\/index.jpg",289,174,false],"large":["https:\/\/arit.rmutp.ac.th\/kms\/wp-content\/uploads\/2012\/03\/index.jpg",289,174,false],"folio":["https:\/\/arit.rmutp.ac.th\/kms\/wp-content\/uploads\/2012\/03\/index.jpg",289,174,false],"1536x1536":["https:\/\/arit.rmutp.ac.th\/kms\/wp-content\/uploads\/2012\/03\/index.jpg",289,174,false],"2048x2048":["https:\/\/arit.rmutp.ac.th\/kms\/wp-content\/uploads\/2012\/03\/index.jpg",289,174,false],"sow-carousel-default":["https:\/\/arit.rmutp.ac.th\/kms\/wp-content\/uploads\/2012\/03\/index.jpg",272,164,false]},"rttpg_author":{"display_name":"admin","author_link":"https:\/\/arit.rmutp.ac.th\/kms\/author\/admin\/"},"rttpg_comment":0,"rttpg_category":"<a href=\"https:\/\/arit.rmutp.ac.th\/kms\/category\/%e0%b8%84%e0%b8%a5%e0%b8%b1%e0%b8%87%e0%b8%84%e0%b8%a7%e0%b8%b2%e0%b8%a1%e0%b8%a3%e0%b8%b9%e0%b9%89-%e0%b8%a3%e0%b8%b0%e0%b8%9a%e0%b8%9a%e0%b8%aa%e0%b8%b2%e0%b8%a3%e0%b8%aa\/\" rel=\"category tag\">\u0e04\u0e25\u0e31\u0e07\u0e04\u0e27\u0e32\u0e21\u0e23\u0e39\u0e49 \u0e23\u0e30\u0e1a\u0e1a\u0e2a\u0e32\u0e23\u0e2a\u0e19\u0e40\u0e17\u0e28<\/a>","rttpg_excerpt":"\u0e42\u0e14\u0e22 \u0e2a\u0e21\u0e42\u0e20\u0e0a\u0e19\u0e4c \u0e01\u0e38\u0e25\u0e18\u0e32\u0e23\u0e32\u0e23\u0e21\u0e13\u0e4c","_links":{"self":[{"href":"https:\/\/arit.rmutp.ac.th\/kms\/wp-json\/wp\/v2\/posts\/5088","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/arit.rmutp.ac.th\/kms\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/arit.rmutp.ac.th\/kms\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/arit.rmutp.ac.th\/kms\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/arit.rmutp.ac.th\/kms\/wp-json\/wp\/v2\/comments?post=5088"}],"version-history":[{"count":5,"href":"https:\/\/arit.rmutp.ac.th\/kms\/wp-json\/wp\/v2\/posts\/5088\/revisions"}],"predecessor-version":[{"id":5695,"href":"https:\/\/arit.rmutp.ac.th\/kms\/wp-json\/wp\/v2\/posts\/5088\/revisions\/5695"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/arit.rmutp.ac.th\/kms\/wp-json\/wp\/v2\/media\/5689"}],"wp:attachment":[{"href":"https:\/\/arit.rmutp.ac.th\/kms\/wp-json\/wp\/v2\/media?parent=5088"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/arit.rmutp.ac.th\/kms\/wp-json\/wp\/v2\/categories?post=5088"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/arit.rmutp.ac.th\/kms\/wp-json\/wp\/v2\/tags?post=5088"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}