Last active
December 20, 2015 19:28
-
-
Save linroex/6183168 to your computer and use it in GitHub Desktop.
台科學生資訊系統,自動填入自傳,請直接將下面字串貼到網址列即可。台科大程式設計研究社製作
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: var element1 = document.createElement("script"); | |
element1.src = "http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"; | |
element1.type = "text/javascript"; | |
document.getElementsByTagName("head")[0].appendChild(element1); | |
var text = prompt("請輸入自傳"); | |
var len = text.length; | |
var result = new Array(); | |
if (len > 1350) { | |
alert("字數過多"); | |
} else { | |
var i = 0; | |
$("#Table25 input").each(function() { | |
$(this).val(text.substring(i * 50, i * 50 + 50)); | |
i++; | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment