gzhmtScript

建议使用firefox浏览器 不要使用IE浏览器 教务系统IP:10.10.12.78(内网) 域名:jw.gzhmt.edu.cn.(外网)

当前为 2019-04-08 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name gzhmtScript
  3. // @namespace https://github.com/Gccc9
  4. // @version 1.0
  5. // @require https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js
  6. // @description 建议使用firefox浏览器 不要使用IE浏览器 教务系统IP:10.10.12.78(内网) 域名:jw.gzhmt.edu.cn.(外网)
  7. // @node 功能1:拦截了登陆界面的弹窗,将错误提示显示在页面上,而不是弹窗
  8. // @node 功能2:选体育课页面中,添加了抢课按钮,位于普通选择按钮的右侧,点击即可进行抢课。
  9. // @node 功能3:选修课页面中,添加了抢课面板,可以进行跨页选择,在想要抢的课的最后一栏点击按钮“添加到抢课”即可添加到面板 而后可以点击提交
  10. // @node 目前webkit内核的浏览器使用此脚本时会出现一些bug,暂未解决
  11. // @node 选修课面板的判断需要做处理,等到抢课的时候即可进行改正。
  12. // @author Gccc9
  13. // @match *://10.10.12.78/*
  14. // @match *://jw.gzhmt.edu.cn/*
  15. // @node 2019.1.7
  16. // @grant none
  17. // ==/UserScript==
  18.  
  19. var baseURL = window.location.host;//用于判断是内网还是外网 10.10.12.78是内网 访问jw.gzhmt.edu.cn为外网。
  20. var path = window.location.host+window.location.pathname;
  21. var helpString = [ '功能1:拦截登陆界面的弹窗,将错误提示显示在页面上.',
  22. '功能2:选体育课页面中,普通选课按钮的右侧添加了抢课按钮,点击即可进行抢课.',
  23. '功能3:选修课页面中添加了抢课面板,可以进行跨页选择,加入面板后即可进行提交.',
  24. '<strong>注意 : 选修课中的筛选面板不要进行改动!!</strong>',
  25. '<strong>版本号: 1.0   作者: Gccc9  日期: 2019.1.7</strong>'];
  26.  
  27. var alertMessage;//弹框弹出的信息
  28. //登陆界面
  29. if( path == baseURL || path == baseURL+"/default2.aspx" ){
  30. window.alert = function(message){
  31. alertMessage = message;
  32. };
  33. }
  34. //首页
  35. if( path == baseURL+"/xs_main.aspx"){
  36. window.alert = function(message){
  37. alertMessage = message;
  38. };
  39. //首页因插件与jquery有兼容问题 故改用原生js实现
  40. window.onload = function(){
  41. let second = 8; //窗口关闭的秒数
  42. let intervalEndFlag;//用于记录渐入是否结束了的
  43. let div = document.createElement("div");
  44. div.innerHTML = "<div style='display:block;position:fixed;top:240px;right:600px;opacity:0' id='tipContent'>"
  45. + "<div style='background:linear-gradient(#eaf4fe,#dbebfb,#dfecfc,#eaf4fe,#dbebfb,#eaf4fe,#bbd2f2);width:350px;padding:10px;border:3px #87a7d7 solid;border-radius:5px;'>"
  46. + "<ul id='helpUl'>"
  47. + "</ul>"
  48. + "</div>"
  49. +"</div>";
  50. document.getElementById("mainDiv").appendChild(div);
  51. if( alertMessage != undefined ){
  52. function fadeIn(element,speeded){
  53. if(element.style.opacity != 0 ){
  54. let num = 10;
  55. intervalEndFlag = setInterval(function(){
  56. num--;
  57. element.style.opacity = num/10;
  58. if(num <= 0) {
  59. clearInterval(intervalEndFlag);
  60. } },speeded);
  61. }};
  62. function fadeOut(element,speeded){
  63. if(element.style.opacity !=1){
  64. let num = 0;
  65. let st = setInterval(function(){
  66. num++;
  67. element.style.opacity = num / 10 ;
  68. if(num >= 10) {
  69. clearInterval(st);
  70. } },speeded);
  71. } };
  72. document.getElementById("helpUl").innerHTML= "<li>"+ alertMessage+"</li>"
  73. +"<li style='text-align:center'><strong>"+second+"秒后自动关闭</strong></li>";
  74. fadeOut(document.getElementById("tipContent"),30);
  75. let loop = setInterval(function(){
  76. if( intervalEndFlag == undefined && second != 0 ){
  77. second--;
  78. document.getElementById("helpUl").innerHTML= "<li>"+ alertMessage+"</li>"
  79. +"<li style='text-align:center'><strong>"+second+"秒后自动关闭</strong></li>";
  80. }
  81. if( second == 0 ){
  82. clearInterval(loop);
  83. }
  84. },1000);
  85. let loopSecond= setInterval(function(){
  86. if( second == 0 ){
  87. fadeIn(document.getElementById("tipContent"),30);
  88. clearInterval(loopSecond);
  89. }
  90. });
  91. }
  92. for( let i = 0 ; i < document.querySelectorAll("a[target='zhuti']").length ; i++ ){
  93. document.querySelectorAll("a[target='zhuti']")[i].addEventListener("click",function(){
  94. document.querySelector("#tipContent").style.opacity = 0;
  95. });
  96. }
  97.  
  98.  
  99. };
  100. }
  101.  
  102.  
  103. $(document).ready(function(){
  104. //登录时清空data数据
  105. $("#Button1").click(function(){
  106. sessionStorage.clear();
  107. });
  108. //登录页面
  109. if( path == baseURL+"/" || path == baseURL+"/default2.aspx"){
  110. //屏蔽登陆弹框 改为在提交登陆界面下面添加提示
  111. $("#Button1").siblings().last().css("color","red").css("margin-left","20px");
  112. $("#txtSecretCode").css("font-size","12px");
  113. $("#icode").css("left","159px");
  114. $("#icodems").remove();
  115. //$("#Button1").siblings().last().prepend(alertMessage);
  116. //脚本说明
  117. $(".login_right").css("position","relative");
  118. $(".login_right").append("<input type='button' value='脚本说明' id='scriptHelp' class='button' style='position:absolute;top:45px;right:140px;' >"
  119. +"<div style='display:none;position:absolute;top:40px;right:-200px' id='helpContent'>"
  120. + "<div style='position:relative'>"
  121. + "<div style='position:absolute;left:-19px;top:10px;width:0px;height:0px;border-top: 10px solid transparent;border-bottom: 10px solid transparent;border-left: 10px solid transparent;border-right: 10px solid #87a7d7;' id='helpBorder'></div>"
  122. + "<div style='position:absolute;left:-15px;top:10px;width:0px;height:0px;border-top: 10px solid transparent;border-bottom: 10px solid transparent;border-left: 10px solid transparent;border-right: 10px solid #e2effc;' id='helpInside'></div>"
  123. + "<div style='background:linear-gradient(#eaf4fe,#dbebfb,#dfecfc,#eaf4fe,#dbebfb,#eaf4fe,#bbd2f2);width:300px;padding:10px;border:3px #87a7d7 solid;border-radius:5px;'>"
  124. + "<ul>"
  125. + "</ul>"
  126. + "</div>"
  127. + "</div>"
  128. +"</div>");
  129. for(var i=0; i<helpString.length;i++){
  130. $("#helpContent ul").append("<li style='text-align:left;'>"+helpString[i]+"</li>");
  131. }
  132. $("#scriptHelp").click(function(){
  133. $("#helpContent").fadeToggle();
  134. });
  135. $("#Button1").parent().append("<div style='display:none;position:absolute;' id='tip'>"
  136. + "<div style='position:relative'>"
  137. + "<div style='position:absolute;left:-19px;top:5px;width:0px;height:0px;border-top: 10px solid transparent;border-bottom: 10px solid transparent;border-left: 10px solid transparent;border-right: 10px solid #87a7d7;'></div>"
  138. + "<div style='position:absolute;left:-15px;top:5px;width:0px;height:0px;border-top: 10px solid transparent;border-bottom: 10px solid transparent;border-left: 10px solid transparent;border-right: 10px solid #dbebfb;'></div>"
  139. + "<div style='background:linear-gradient(#eaf4fe,#dbebfb,#dfecfc,#eaf4fe,#dbebfb,#eaf4fe,#bbd2f2);width:110px;padding:10px;border:3px #87a7d7 solid;border-radius:5px;'>"
  140. + "<ul>"
  141. + "</ul>"
  142. + "</div>"
  143. + "</div>"
  144. +"</div>");
  145. if( alertMessage != undefined ){
  146. $("#tip ul").append("<li style='text-align:left;'>"+alertMessage+"<li>");
  147. if( alertMessage.startsWith("用户名") ){
  148. $("#tip").css("top","95px").css("right","10px");
  149. }else if( alertMessage.startsWith("密码")){
  150. $("#tip").css("top","128px").css("right","10px");
  151. }else if( alertMessage.startsWith("验证码")){
  152. $("#tip").css("top","170px").css("right","10px");
  153. }
  154. $("#tip").fadeIn();
  155. setTimeout(function(){
  156. $("#tip").fadeToggle();
  157. },4500);
  158. };
  159. }
  160.  
  161. //公选课抢课
  162. if( path == baseURL+"/xf_xsqxxxk.aspx"){
  163. $(".toolbox").css("position","relative");
  164. //脚本说明
  165. $(".toolbox").append("<input type='button' value='脚本说明' id='scriptHelp' class='button' style='position:absolute;top:58px;right:42px;' >"
  166. +"<div style='display:none;position:absolute;top:50px;right:120px' id='helpContent'>"
  167. + "<div style='position:relative'>"
  168. + "<div style='position:absolute;right:-19px;top:10px;width:0px;height:0px;border-top: 10px solid transparent;border-bottom: 10px solid transparent;border-right: 10px solid transparent;border-left: 10px solid #87a7d7;'></div>"
  169. + "<div style='position:absolute;right:-15px;top:10px;width:0px;height:0px;border-top: 10px solid transparent;border-bottom: 10px solid transparent;border-right: 10px solid transparent;border-left: 10px solid #e2effc;'></div>"
  170. + "<div style='background:linear-gradient(#eaf4fe,#dbebfb,#dfecfc,#eaf4fe,#dbebfb,#eaf4fe,#bbd2f2);width:300px;padding:10px;border:3px #87a7d7 solid;border-radius:5px;'>"
  171. + "<ul>"
  172. + "</ul>"
  173. + "</div>"
  174. + "</div>"
  175. +"</div>");
  176. for(i=0; i<helpString.length;i++){
  177. $("#helpContent ul").append("<li style='text-align:left;'>"+helpString[i]+"</li>");
  178. }
  179. $("#scriptHelp").click(function(){
  180. $("#helpContent").fadeToggle();
  181. });
  182.  
  183.  
  184. $("tr.datelisthead:first").append("<td>添加到抢课列表</td>");
  185. $("tbody:first>tr[class!='datelisthead']").append("<td><input type='button' class='button' value='添加到抢课'></td>");
  186. $(".searchbox:eq(1)").after("<div style='position:absolute;left:700px;top:5px;width:620px;'>"
  187. + "<select style='width:99%;height:99%;' size='3' onchange='' id='selectCreazy'>"
  188. + "</select>"
  189. + "<input type='button' class='button' value='提交' style='margin-right:50px;margin-top:4px;' id='postSessionStorage'>"
  190. + "<input type='button' class='button' value='清空' style='margin-right:50px;margin-top:4px;' id='delSessionStorage'>"
  191. + "<p style='position:absolute;left:405px;top:54px;' id='tip'><p>"
  192. +"</div>");
  193. var sessionData1 = JSON.parse(sessionStorage.getItem("data1"));
  194. var sessionData2 = JSON.parse(sessionStorage.getItem("data2"));
  195.  
  196. if( sessionData1 != null ){
  197. $("select[id='selectCreazy']").append("<option>"+sessionData1.sourceName+"---"+sessionData1.teacher+"---"+sessionData1.time+"---"+sessionData1.place+"---"+sessionData1.college+"</option>");
  198. $("select[id='selectCreazy']").children("option:last").attr("value",sessionData1.postValue);
  199. }
  200. if( sessionData2 != null ){
  201. $("select[id='selectCreazy']").append("<option>"+sessionData2.sourceName+"---"+sessionData2.teacher+"---"+sessionData2.time+"---"+sessionData2.place+"---"+sessionData2.college+"</option>");
  202. $("select[id='selectCreazy']").children("option:last").attr("value",sessionData2.postValue);
  203. }
  204. function sendData(){
  205. let __EVENTTARGET = $("input[name='__EVENTTARGET']").val();
  206. let __EVENTARGUMENT = $("input[name='__EVENTARGUMENT']").val();
  207. let interval1;
  208. let interval2;
  209. let runFlag1 = false;
  210. let runFlag2 = false;
  211. sessionData1 = JSON.parse(sessionStorage.getItem("data1"));
  212. sessionData2 = JSON.parse(sessionStorage.getItem("data2"));
  213.  
  214. if( sessionData1 != null ){
  215. runFlag1 = true;
  216. $("#delSessionStorage").hide();
  217. $("#postSessionStorage").val("停止抢课");
  218. $("#postSessionStorage").unbind("click");
  219. $("#postSessionStorage").click(function(){
  220. $("#postSessionStorage").val("提交");
  221. if( runFlag1 == true ){
  222. runFlag1 = false;
  223. clearInterval(interval1);
  224. }
  225. if( runFlag2 == true ){
  226. runFlag2 = false;
  227. clearInterval(interval2);
  228. }
  229. $("#delSessionStorage").show();
  230. $("#postSessionStorage").click(sendData);
  231. });
  232. let choose = sessionData1.postValue;
  233. let data = {
  234. "__EVENTTARGET":__EVENTTARGET,
  235. "__EVENTARGUMENT":__EVENTARGUMENT,
  236. "__VIEWSTATE":sessionData1.viewstate,
  237. "Button1":$("#Button1").val(),
  238. "ddl_kcgs":"",
  239. "ddl_kcxz":"",
  240. "ddl_sksj":"",
  241. "ddl_xqbs":"1",
  242. "ddl_ywyl":$("#ddl_ywyl").children("option[selected='selected']").val(),
  243. "dpkcmcGrid:txtChoosePage":sessionData1.pageCount,
  244. "dpkcmcGrid:txtPageSize":"15",
  245. "TextBox1":""
  246. };
  247. data[choose]="on";
  248. interval1 = setInterval( function(){
  249. $.ajax({
  250. url:$("#xsyxxxk_form").attr("action"),
  251. data:data,
  252. headers:{
  253. "Upgrade-Insecure-Requests":"1",
  254. "X-Requested-With":"",
  255. "Accept":"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
  256. },
  257. type:"POST",
  258. contentType: 'application/x-www-form-urlencoded;charset=GBK',
  259. datatype:"TEXT",
  260. success:function(data,status,xhr){
  261. if( data.split("alert(\'")[1].split("\');</script>")[0] == "现在不是选课时间!!"){
  262. $("#tip").text(data.split("alert(\'")[1].split("\');</script>")[0]);
  263. }else if( data.split("alert(\'")[1].split("\');</script>")[0] == "您已经修过该课程!不能再选"){
  264. $("#tip").text(data.split("alert(\'")[1].split("\');</script>")[0]);
  265. clearInterval(interval1);
  266. runFlag1 = false;
  267. if( runFlag2 == false || interval2 == undefined ){
  268. $("#postSessionStorage").val("提交");
  269. $("#postSessionStorage").unbind("click");
  270. $("#postSessionStorage").click(sendData);
  271. $("#delSessionStorage").show();
  272. }
  273.  
  274. }else{
  275. $("#tip").text(data.split("alert(\'")[1].split("\');</script>")[0]);
  276. clearInterval(interval1);
  277. runFlag1 = false;
  278. if( runFlag2 == false || interval2 == undefined){
  279. $("#postSessionStorage").val("提交");
  280. $("#postSessionStorage").unbind("click");
  281. $("#postSessionStorage").click(sendData);
  282. $("#delSessionStorage").show();
  283. }
  284. }
  285. },
  286. error:function(data,status,xhr){
  287. $("#tip").text("( ̄▽ ̄)\"客官,您的网络似乎不太行");
  288. }
  289. });
  290. },500);
  291.  
  292. }
  293.  
  294. if( sessionData2 != null ){
  295. runFlag2 = true;
  296. let choose = sessionData2.postValue;
  297. let data = {
  298. "__EVENTTARGET":__EVENTTARGET,
  299. "__EVENTARGUMENT":__EVENTARGUMENT,
  300. "__VIEWSTATE":sessionData2.viewstate,
  301. "Button1":$("#Button1").val(),
  302. "ddl_kcgs":"",
  303. "ddl_kcxz":"",
  304. "ddl_sksj":"",
  305. "ddl_xqbs":"1",
  306. "ddl_ywyl":$("#ddl_ywyl").children("option[selected='selected']").val(),
  307. "dpkcmcGrid:txtChoosePage":sessionData2.pageCount,
  308. "dpkcmcGrid:txtPageSize":"15",
  309. "TextBox1":""
  310. };
  311. data[choose]="on";
  312. interval2 = setInterval( function(){
  313. $.ajax({
  314. url:$("#xsyxxxk_form").attr("action"),
  315. data:data,
  316. type:"POST",
  317. headers:{
  318. "Upgrade-Insecure-Requests":"1",
  319. "X-Requested-With":"",
  320. "Accept":"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
  321. },
  322. contentType: 'application/x-www-form-urlencoded;charset=GBK',
  323. datatype:"TEXT",
  324. success:function(data,status,xhr){
  325. if( data.split("alert(\'")[1].split("\');</script>")[0] == "现在不是选课时间!!"){
  326. $("#tip").text(data.split("alert(\'")[1].split("\');</script>")[0]);
  327. }else if( data.split("alert(\'")[1].split("\');</script>")[0] == "您已经修过该课程!不能再选"){
  328. $("#tip").text(data.split("alert(\'")[1].split("\');</script>")[0]);
  329. clearInterval(interval2);
  330. runFlag2 = false;
  331. if( runFlag1 == false){
  332. $("#postSessionStorage").val("提交");
  333. $("#postSessionStorage").unbind("click");
  334. $("#postSessionStorage").click(sendData);
  335. $("#delSessionStorage").show();
  336. }
  337. }else{
  338. $("#tip").text(data.split("alert(\'")[1].split("\');</script>")[0]);
  339. clearInterval(interval2);
  340. runFlag2 = false;
  341. if( runFlag1 == false){
  342. $("#postSessionStorage").val("提交");
  343. $("#postSessionStorage").unbind("click");
  344. $("#postSessionStorage").click(sendData);
  345. $("#delSessionStorage").show();
  346. }
  347. }
  348. },
  349. error:function(data,status,xhr){
  350. $("#tip").text("( ̄▽ ̄)\"客官,您的网络似乎不太行");
  351. }
  352. });
  353. },500);
  354. }
  355. };
  356.  
  357. //给"抢课提交"增加监听
  358. $("#postSessionStorage").click(sendData);
  359.  
  360.  
  361.  
  362. //给“清空”增加监听
  363. $("#delSessionStorage").click(function(){
  364. sessionStorage.clear();
  365. $("select[id='selectCreazy']").empty();
  366. $("#tip").text("");
  367. });
  368.  
  369. //给“添加到抢课”增加监听器
  370. $("td > input[type='button']").click(function(e){
  371. if( $("select[id='selectCreazy']").children().length < 2 ){
  372. let sourceName = $(e.target).parent().parent().children("td:eq(1)").text();
  373. let teacher = $(e.target).parent().parent().children("td:eq(3)").text();
  374. let time = $(e.target).parent().parent().children("td:eq(4)").attr("title");
  375. let place = $(e.target).parent().parent().children("td:eq(5)").text();
  376. let college = $(e.target).parent().parent().children("td:eq(14)").text();
  377. let postValue =$(e.target).parent().parent().children("td:first").children("input").attr("name");
  378. let json = {
  379. 'postValue':postValue,
  380. 'pageCount':$("#dpkcmcGrid_lblCurrentPage").text(),
  381. 'sourceName':sourceName,
  382. 'teacher':teacher,
  383. 'time':time,
  384. 'place':place,
  385. 'college':college,
  386. 'viewstate':$("input[name='__VIEWSTATE']").val()
  387. };
  388. $("select[id='selectCreazy']").append("<option>"+sourceName+"---"+teacher+"---"+time+"---"+place+"---"+college+"</option>");
  389. $("select[id='selectCreazy']").children("option:last").attr("value",postValue);
  390. if( sessionStorage.getItem('data1') == null ){
  391. sessionStorage.setItem('data1',JSON.stringify(json));
  392. }else{
  393. sessionStorage.setItem('data2',JSON.stringify(json));
  394. }
  395. }
  396. });
  397. }
  398.  
  399. //体育课抢课
  400. if( path == baseURL+"/xstyk.aspx"){
  401. //脚本说明
  402. $("body").append("<input type='button' value='脚本说明' id='scriptHelp' class='button' style='position:absolute;top:58px;right:42px;' >"
  403. +"<div style='display:none;position:absolute;top:50px;right:120px' id='helpContent'>"
  404. + "<div style='position:relative'>"
  405. + "<div style='position:absolute;right:-18px;top:10px;width:0px;height:0px;border-top: 10px solid transparent;border-bottom: 10px solid transparent;border-right: 10px solid transparent;border-left: 10px solid #87a7d7;'></div>"
  406. + "<div style='position:absolute;right:-15px;top:10px;width:0px;height:0px;border-top: 10px solid transparent;border-bottom: 10px solid transparent;border-right: 10px solid transparent;border-left: 10px solid #e2effc;'></div>"
  407. + "<div style='background:linear-gradient(#eaf4fe,#dbebfb,#dfecfc,#eaf4fe,#dbebfb,#eaf4fe,#bbd2f2);width:300px;padding:10px;border:3px #87a7d7 solid;border-radius:5px;'>"
  408. + "<ul>"
  409. + "</ul>"
  410. + "</div>"
  411. + "</div>"
  412. +"</div>");
  413. for(i=0; i<helpString.length;i++){
  414. $("#helpContent ul").append("<li style='text-align:left;'>"+helpString[i]+"</li>");
  415. }
  416. $("#scriptHelp").click(function(){
  417. $("#helpContent").fadeToggle();
  418. });
  419.  
  420. function sendData(){
  421. $("#button3").siblings().last().text("-----开始抢课-----");
  422. $("#button4").val("停止抢课");
  423. $("#button4").unbind("click");
  424. $("#button4").click(function(){
  425. clearInterval(interval);
  426. $("#button4").val("开始抢课");
  427. $("#button4").unbind("click");
  428. $("#button4").click(sendData);
  429. });
  430. let interval = setInterval( function(){ //clearInterval(interval);用于终止
  431. $.ajax({
  432. url:$("#Form1").attr("action"),
  433. data:{ __EVENTTARGET:$("input[name='__EVENTTARGET']").val(),
  434. __EVENTARGUMENT:$("input[name='__EVENTARGUMENT']").val(),
  435. __VIEWSTATE:$("input[name='__VIEWSTATE']").val(),
  436. button3:"%D1%A1%B6%A8%BF%CE%B3%CC",
  437. DropDownList1:$("#DropDownList1").children("option[selected='selected']").val(),
  438. ListBox1:$("#ListBox1").children("option[selected='selected']").val(),
  439. ListBox2:$("#ListBox2").children("option[selected='selected']").val()
  440. },
  441. type:"POST",
  442. contentType: 'application/x-www-form-urlencoded;charset=GBK',
  443. datatype:"TEXT",
  444. success:function(data,status,xhr){
  445. if( data.split("alert(\'")[1].split("\');</script>")[0] == "只能选1门体育课!!"){
  446. $("#Form1").submit();
  447. }else if( data.split("alert(\'")[1].split("\');</script>")[0] == "请选择对应值!!"){
  448. $("#button3").parent().children("p").text(data.split("alert(\'")[1].split("\');</script>")[0]);
  449. clearInterval(interval);
  450. $("#button4").val("开始抢课");
  451. $("#button4").unbind("click");
  452. $("#button4").click(sendData);
  453. }else{
  454. $("#button3").parent().children("p").text(data.split("alert(\'")[1].split("\');</script>")[0]);
  455. }
  456. },
  457. error:function(data){
  458. $("#button3").parent().children("p").text("( ̄▽ ̄)\"客官,您的网络似乎不太行");
  459. }
  460. });
  461. },300);
  462.  
  463. }
  464.  
  465. $("#button3").parent().append("<input id='button4' class='button' value='开始抢课' style='width:60px'>");
  466. $("#button3").parent().append("<p style='display:inline;margin-left:30px;'></p>");
  467. $("#button4").click(sendData);
  468. }
  469.  
  470. });
  471.