diff --git a/jinwon/JavaScript/2.html b/jinwon/JavaScript/2.html new file mode 100644 index 0000000..4a567ce --- /dev/null +++ b/jinwon/JavaScript/2.html @@ -0,0 +1,132 @@ + + +
+ + +
+ JavaScript는 가벼운, 인터프리터 혹은 just-in-time 컴파일 프로그래밍
+ 언어로, 일급 함수를 지원합니다.
+ 웹 페이지를 위한 스크립트 언어로 잘 알려져 있고, Node.js, Apache
+ CouchDB, Adobe Acrobat처럼 많은 비 브라우저 환경에서도 사용합니다
+ JavaScript는 프로토타입 기반, 다중 패러다임, 단일 스레드, 동적
+ 언어로, 객체지향형, 명령형, 선언형 스타일을 지원합니다.
+
+ JavaScript는 가벼운, 인터프리터 혹은 just-in-time 컴파일 프로그래밍
+ 언어로, 일급 함수를 지원합니다.
+ 웹 페이지를 위한 스크립트 언어로 잘 알려져 있고, Node.js, Apache
+ CouchDB, Adobe Acrobat처럼 많은 비 브라우저 환경에서도 사용합니다
+ JavaScript는 프로토타입 기반, 다중 패러다임, 단일 스레드, 동적
+ 언어로, 객체지향형, 명령형, 선언형 스타일을 지원합니다.
+
+ JavaScript는 가벼운, 인터프리터 혹은 just-in-time 컴파일 프로그래밍
+ 언어로, 일급 함수를 지원합니다.
+ 웹 페이지를 위한 스크립트 언어로 잘 알려져 있고, Node.js, Apache
+ CouchDB, Adobe Acrobat처럼 많은 비 브라우저 환경에서도 사용합니다
+ JavaScript는 프로토타입 기반, 다중 패러다임, 단일 스레드, 동적
+ 언어로, 객체지향형, 명령형, 선언형 스타일을 지원합니다.
+
+ JavaScript는 가벼운, 인터프리터 혹은 just-in-time 컴파일 프로그래밍
+ 언어로, 일급 함수를 지원합니다.
+ 웹 페이지를 위한 스크립트 언어로 잘 알려져 있고, Node.js, Apache
+ CouchDB, Adobe Acrobat처럼 많은 비 브라우저 환경에서도 사용합니다
+ JavaScript는 프로토타입 기반, 다중 패러다임, 단일 스레드, 동적
+ 언어로, 객체지향형, 명령형, 선언형 스타일을 지원합니다.
+
- JavaScript often abbreviated as JS, is - a programming language and core technology of the Web, alongside - HTML and CSS. 99% of websites use - JavaScript on the client side for webpage - behavior.[10] Web browsers have a dedicated - JavaScript engine that executes the client code. - These engines are also utilized in some servers and a variety of apps. The - most popular runtime system for non-browser usage is Node.js. - JavaScript is a high-level, often just-in-time - compiled language that conforms to the ECMAScript standard.[11] It has - dynamic typing, prototype-based object-orientation, and first-class - functions. It is multi-paradigm, supporting event-driven, functional, and - imperative programming styles. It has application programming interfaces - (APIs) for working with text, dates, regular expressions, standard data - structures, and the Document Object Model (DOM). + JavaScript often abbreviated as JS, is a programming language and core + technology of the Web, alongside HTML and CSS. 99% of websites use + JavaScript on the client side for webpage behavior.[10] Web browsers have + a dedicated JavaScript engine that executes the client code. These engines + are also utilized in some servers and a variety of apps. The most popular + runtime system for non-browser usage is Node.js. JavaScript is a + high-level, often just-in-time compiled language that conforms to the + ECMAScript standard.[11] It has dynamic typing, prototype-based + object-orientation, and first-class functions. It is multi-paradigm, + supporting event-driven, functional, and imperative programming styles. It + has application programming interfaces (APIs) for working with text, + dates, regular expressions, standard data structures, and the Document + Object Model (DOM).
diff --git a/yoojin/html/colors.js b/yoojin/html/colors.js new file mode 100644 index 0000000..2966981 --- /dev/null +++ b/yoojin/html/colors.js @@ -0,0 +1,40 @@ +var Links = { + SetColor: function (color) { + // var alist = document.querySelectorAll("a"); + // var i = 0; + // while (i < alist.length) { + // alist[i].style.color = color; + // i = i + 1; + // } + $("a").css("color", color); + }, +}; + +var Body = { + SetColor: function (color) { + // document.querySelector("body").style.color = color; + $("body").css("color", color); + }, + + SetBackgroundColor: function (color) { + // document.querySelector("body").style.backgroundColor = color; + $("body").css("backgroundColor", color); + }, +}; + +function nightDayHandler(self) { + var target = document.querySelector("body"); + if (self.value === "night") { + Body.SetBackgroundColor = "black"; + Body.SetColor = "white"; + self.value = "day"; + + Links.SetColor("powderblue"); + } else { + Body.SetBackgroundColor = "white"; + Body.SetColor = "black"; + self.value = "night"; + + Links.SetColor("blue"); + } +} diff --git a/yoojin/html/ex10.html b/yoojin/html/ex10.html new file mode 100644 index 0000000..db4a95b --- /dev/null +++ b/yoojin/html/ex10.html @@ -0,0 +1,37 @@ + + + + + + +