From e222c2f31a9f7fcef9b0377b8f5834e1bd6b30a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=84=8B=E1=85=A2=E1=84=91=E1=85=B3=E1=86=AF=20=E1=84=82?= =?UTF-8?q?=E1=85=A9=E1=84=90=E1=85=B3=E1=84=87=E1=85=AE=E1=86=A8?= Date: Tue, 26 Mar 2019 18:29:21 +0900 Subject: [PATCH] Add: copy table contents to clipboard --- src/web/module/maestro_section_record.html | 88 ++++++++++++++++------ 1 file changed, 63 insertions(+), 25 deletions(-) diff --git a/src/web/module/maestro_section_record.html b/src/web/module/maestro_section_record.html index 8053ebc..c7496bb 100644 --- a/src/web/module/maestro_section_record.html +++ b/src/web/module/maestro_section_record.html @@ -13,19 +13,45 @@ $(document).ready(function() { }); +function copyToClipboard() { + console.log("copyToClipboard();"); + var data = $("#dataTable") +}; + + + function selectElementContents(el) { + var body = document.body, range, sel; + if (document.createRange && window.getSelection) { + range = document.createRange(); + sel = window.getSelection(); + sel.removeAllRanges(); + try { + range.selectNodeContents(el); + sel.addRange(range); + } catch (e) { + range.selectNode(el); + sel.addRange(range); + } + } else if (body.createTextRange) { + range = body.createTextRange(); + range.moveToElementText(el); + range.select(); + } + document.execCommand("Copy"); +} + + +
검색 조건
-
-
- - -
+
+
날짜
@@ -44,30 +70,30 @@ $(document).ready(function() {
- 모든 날짜 데이터를 검색하려면, 시간 체크 박스를 해제하세요. +
+ + +
-
-
- - -
+
+
학생 이름
- 모든 학생 데이터를 검색하려면, 학생 이름 체크 박스를 해제하세요. +
+ + +
-
-
- - -
+
+
과목
- -
+ +
@@ -84,8 +110,8 @@ $(document).ready(function() {
- -
+ +
@@ -101,20 +127,32 @@ $(document).ready(function() {
+
+ + +
+ + +
- -

+
+
+ +
+
+ +
+
- - +
#