A simple Russian square script

zhaozj2021-02-16  46

This is a simple Russian source code, written in JavaScript. It was an occasionally found it before I found it very valuable, so I collected it. Unfortunately, I don't know what it is. The biggest feature of this script is the data required by array storage, simplifies programming, worth learning. Although there is no comment, it seems that it should not understand the author's ideas.

Russian square </ Title></p> <p><style></p> <p>Body {Margin: 0; Background: Black;</p> <p>TD {height: 20; width: 20;</p> <p>#block_div {position: absolute; z-index: 1; width: 80;</p> <p>#table_div {position: absolute; z-index: 0; width: 320;</p> <p>#NBLOCK_DIV {Position: absolute; z-index: 2; font: 48 system; color: red;}</p> <p>#title_div {Position: absolute; Left: 326; Top: 7; Font-size: 9pt; color: white}</p> <p>#infobar_div {Position: absolute; left: 396; top: 416;</p> <p># infobar2_div {position: absolute; left: 396; top: 480; font-size: 9pt; color: white}</p> <p># infobar2_div a {color: 99ccff; font: system; text-decoration: none}</p> <p></ style></p> <p><Script id = client, = javascript></p> <p>IF (Document.all) {</p> <p>VAR n_width = 800;</p> <p>VAR n_height = 600;</p> <p>Var n_left = math.round (screen.width / 2) - n_width / 2;</p> <p>VAR n_top = math.round (screen.height / 2) - n_height / 2;</p> <p>VAR n_incstep = 20;</p> <p>Var Curblcok, NextBlock;</p> <p>Var arr_curblock = new array (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);</p> <p>Var Curx, Cury;</p> <p>Var speed = 1;</p> <p>Var maxSpeed ​​= 9;</p> <p>VAR CLR_PER_LINE = 18;</p> <p>Var pause = 0;</p> <p>Var gameOver = 0;</p> <p>Var colors = new array ("# ​​999999", "# 80fff", "# 80ff80", "# fff00", "# ff8000", "#f00ff", "#f0000");</p> <p>VAR CID;</p> <p>VAR NCID;</p> <p>VAR blocks = new array (TT_O1 "," TT_T2 "," TT_Z1 "," TT_S1 "," TT_L1 "," TT_J1 "," TT_I2 "); VAR BID;</p> <p>Var killedlines = 0;</p> <p>VAR TT_O1 = New Array (0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0);</p> <p>VAR TT_O2 = New Array (0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0);</p> <p>VAR TT_O3 = New Array (0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0);</p> <p>VAR TT_O4 = New Array (0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0);</p> <p>VAR TT_T1 = New Array (0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 0);</p> <p>VAR TT_T2 = New Array (0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0);</p> <p>VAR TT_T3 = New Array (0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0);</p> <p>VAR TT_T4 = New Array (0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0);</p> <p>VAR TT_Z1 = New Array (0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0);</p> <p>VAR TT_Z2 = New Array (0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 0);</p> <p>VAR TT_Z3 = New Array (0,0,0,0,0,1,1,0,0,0,0);</p> <p>VAR TT_Z4 = New Array (0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0);</p> <p>VAR TT_S1 = New Array (0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0);</p> <p>VAR TT_S2 = New Array (0,0,0,0,0,0,0,0,1,0);</p> <p>VAR TT_S3 = New Array (0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 0);</p> <p>VAR TT_S4 = New Array (0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0);</p> <p>VAR TT_L1 = New Array (0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0);</p> <p>VAR TT_L2 = New Array (0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 0);</p> <p>VAR TT_L3 = New Array (0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 0);</p> <p>VAR TT_L4 = New Array (0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0);</p> <p>VAR TT_J1 = New Array (0,0,1,0,0,0,0,0,0,0,0,0,10,0,0,0);</p> <p>VAR TT_J2 = New Array (0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,10,0,0,0);</p> <p>VAR TT_J3 = New Array (0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0);</p> <p>VAR TT_J4 = New Array (0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0);</p> <p>VAR TT_I1 = New Array (0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0);</p> <p>VAR TT_I2 = New Array (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1); VAR TT_I3 = New Array (0, 0, 1 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0);</p> <p>VAR TT_I4 = New Array (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1);</p> <p>Var Table = New Array</p> <p>1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1,</p> <p>1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1,</p> <p>1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1,</p> <p>1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1,</p> <p>1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1,</p> <p>1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1,</p> <p>1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1,</p> <p>1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1,</p> <p>1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1,</p> <p>1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1,</p> <p>1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1,</p> <p>1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1,</p> <p>1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1,</p> <p>1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1,</p> <p>1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1,</p> <p>1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1,</p> <p>1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1,</p> <p>1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1,</p> <p>1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1,</p> <p>1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1,</p> <p>1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1,</p> <p>1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)</p> <p>}</p> <p>Else</p> <p>Alert ("You NEED IE4 To Play Tetris!")</p> <p>Function Dimension2 (Row, Col, Num) {</p> <p>VAR i = row * Num col;</p> <p>Return (THIS [I]);</p> <p>}</p> <p>Array.Prototype.getd = Dimension2;</p> <p>Function Showblock (X, Y, Block_Type, Color) {</p> <p>For (VAR i = 0; i <block_tbl.rows.length; i ) {</p> <p>For (var j = 0; j <block_tbl.rows (i) .Cells.Length; J ) {</p> <p>VAR D2 = i * 4 j;</p> <p>IF (block_type [d2] == 1) {</p> <p>Block_tbl.rows (i) .cells (j) .style.background = color;</p> <p>}</p> <p>Else {</p> <p>Block_tbl.rows (i) .cells (j) .style.background = "</p> <p>}</p> <p>}</p> <p>}</p> <p>Block_div.style.pixelleft = x;</p> <p>Block_div.style.pixeltop = y;</p> <p>}</p> <p>Function Showblock1 (x, y, block_type, color, obj_tabid, obj_divid) {</p> <p>FOR (var i = 0; i <obj_tabid.rows.length; i ) {</p> <p>For (var j = 0; j <obj_tabid.rows (i) .Cells.Length; J ) {var D2 = i * 4 j;</p> <p>IF (block_type [d2] == 1) {</p> <p>Obj_tabid.rows (i) .cells (j) .style.background = color;</p> <p>}</p> <p>Else {</p> <p>Obj_tabid.rows (i) .Cells (j) .style.background = "</p> <p>}</p> <p>}</p> <p>}</p> <p>Obj_divid.style.pixelleft = x;</p> <p>Obj_divid.style.pixeltop = y;</p> <p>}</p> <p>Function change (inc) {</p> <p>Var type = curblock.substr (0,4);</p> <p>VAR Num = curblock.substr (curblock.length-1);</p> <p>Num = parseint (num) inc;</p> <p>IF (NUM> 4 || Num <1) Num - = 4 * Inc;</p> <p>TYPE = Num;</p> <p>EVAL ("arr_tmp =" type ";");</p> <p>IF (CANMOVE (CURX, Cury, Arr_TMP) {</p> <p>Curblock = Type;</p> <p>EVAL ("arr_curblock =" curblock ";");</p> <p>Eval ("Showblock (Block_Div.style.pixelleft, block_div.style.pixeltop," curblock ", colors [" CID "]);");</p> <p>}</p> <p>}</p> <p>Function Canmove (X, Y, Block) {</p> <p>For (i = 0; i <4; i ) {</p> <p>For (j = 0; j <4; j ) {</p> <p>IF (Block.getd (i, J, 4) & Table.getd (Y / N_INCSTEP I, X / N_INCSTEP J, 16)) RETURN FALSE;</p> <p>}</p> <p>}</p> <p>Return True;</p> <p>}</p> <p>Function newblock () {</p> <p>Curblock = nextblock;</p> <p>CID = NCID;</p> <p>Bid = math.round (math.random () * (blocks.length-1);</p> <p>NCID = Math.Round (Math.random () * (Colors.length-1));</p> <p>NextBlock = blocks [bid];</p> <p>EVAL ("arr_curblock =" curblock ";");</p> <p>EVAL ("Showblock (120, 0," Curblock ", Colors [" CID "]);");</p> <p>EVAL ("arr_curblock =" curblock ";");</p> <p>EVAL ("Showblock1 (466, 116," NextBlock ", Colors [" NCID "], NBLOCK_TBL, NBLOCK_DIV);");</p> <p>}</p> <p>Function saveblock () {</p> <p>For (i = 0; i <4; i ) {for (j = 0; j <4; j ) {</p> <p>Table [(CURY / N_INCSTEP I) * 16 CURX / N_INCSTEP J] | = arr_curblock [i * 4 j];</p> <p>IF (arr_curblock [i * 4 j] == 1)</p> <p>IF ((Cury / N_INCSTEP I <21) && (CURX / N_INCSTEP J> 1) && (CURX / N_INCSTEP J <14)))</p> <p>Table_TBL.Rows (Cury / n_incstep i) .Cells (CURX / N_INCSTEP J) .Style.Background = Colors [CID];</p> <p>IF (Table / N_INCSTEP I) * 16 CURX / N_INCSTEP J]! = 1)</p> <p>Table_TBL.ROWS (CURY / N_INCSTEP I) .Cells (CURX / N_INCSTEP J) .Style.Background = "Black";</p> <p>}</p> <p>}</p> <p>}</p> <p>Function Delline (LINE) {</p> <p>For (i = line; i> 0; i -) {</p> <p>For (j = 2; j <14; j ) {</p> <p>Table [i * 16 j] = Table [(i-1) * 16 j];</p> <p>}</p> <p>}</p> <p>Table_TBl.deleterow (LINE);</p> <p>Table_tbl.insertrow (0);</p> <p>For (i = 0; i <16; i ) {</p> <p>Table_TBL.ROWS (0) .insertcell ();</p> <p>IF (i <2 || i> 13) Table_TBL.ROWS (0) .Cells (i) .Style.Background = "Navy";</p> <p>}</p> <p>KilledLines ;</p> <p>Cll.innertext = PARSEINT (CLL.INNERTEXT) 1;</p> <p>}</p> <p>Function Dellines () {</p> <p>Var C, D, I, J;</p> <p>D = 0;</p> <p>Cury = block_div.style.pixeltop;</p> <p>For (i = (CURY / 20 3); I> Cury / 20-1; I -) {</p> <p>C = 0;</p> <p>For (j = 2; j <14; j ) {</p> <p>IF (ISNAN (Table [i * 16 j]) || i == 21) Break;</p> <p>C = Table [i * 16 j];</p> <p>}</p> <p>IF (c == 12) {</p> <p>Delline (i);</p> <p>i ;</p> <p>D ;</p> <p>}</p> <p>}</p> <p>IF (D> 0)</p> <p>Sco.innertext = PARSEINT (SCO.INNERTEXT) D * D * 36;</p> <p>}</p> <p>Function lucifer () {</p> <p>FOR (var i = 2; i <14; i ) {</p> <p>IF (Table [16 I] == 1) Return True;</p> <p>}</p> <p>Return False;</p> <p>}</p> <p>Function gameOver () {</p> <p>GameOver = 1;</p> <p>ClearInterval (GameInterVal);</p> <p>Block_div.innerhtml = "";</p> <p>For (i = 0; i <21; i ) {</p> <p>For (j = 2; j <14; j ) {</p> <p>SetTimeout ("Table_TBL.Rows (" i ") .Cells (" J ") .Style.Background = Colors [Math.Round (Math.Radom () * 7)];", 16 * i * j }</p> <p>}</p> <p>nblock_div.innerhtml = "Game over";</p> <p>}</p> <p>Function Document_onkeyDown () {</p> <p>IF (GameOver == 1) Return;</p> <p>With (block_div.style) {</p> <p>CURX = Pixelleft;</p> <p>Cury = pixeltop;</p> <p>Switch (Event.Keycode) {</p> <p>Case 37:</p> <p>IF (curx-n_incstep, cury, arr_curblock)</p> <p>Pixelleft- = n_incstep;</p> <p>Break;</p> <p>Case 38:</p> <p>Change (1);</p> <p>Break;</p> <p>Case 39:</p> <p>IF (curx n_incstep, cury, arr_curblock)</p> <p>Pixelleft = n_incstep;</p> <p>Break;</p> <p>Case 40:</p> <p>IF (CANMOVE (Curx, Cury N_INCSTEP, ARR_CURBLOCK) {</p> <p>Pixeltop = n_incstep;</p> <p>}</p> <p>Else {</p> <p>Saveblock ();</p> <p>Dellines ();</p> <p>IF (lucifer ()) {</p> <p>GameOver ();</p> <p>Return;</p> <p>}</p> <p>Sco.innertext = PARSEINT (SCo.innertext) 2;</p> <p>NEWBLOCK ();</p> <p>}</p> <p>Break;</p> <p>Case 32:</p> <p>IF (pause == 0) {</p> <p>ClearInterval (GameInterVal);</p> <p>Pause = 1;</p> <p>}</p> <p>Else {</p> <p>GameInterval = Window.setInterval ("Handle_Interval ()", (MaxSpeed-Speed ​​ 1) * 60);</p> <p>Pause = 0;</p> <p>}</p> <p>Break;</p> <p>Case 90:</p> <p>Change (1);</p> <p>Break;</p> <p>Case 88:</p> <p>Change (-1);</p> <p>Break;</p> <p>DEFAULT:</p> <p>}</p> <p>}</p> <p>}</p> <p>Function Handle_Interval () {</p> <p>Curx = block_div.style.pixelleft;</p> <p>Cury = block_div.style.pixeltop;</p> <p>IF (CANMOVE (Curx, Cury N_INCSTEP, ARR_CURBLOCK) {</p> <p>Block_div.style.pixeltop = n_incstep;</p> <p>}</p> <p>Else {</p> <p>Saveblock ();</p> <p>Dellines ();</p> <p>IF (lucifer ()) {</p> <p>GameOver ();</p> <p>Return;</p> <p>}</p> <p>Sco.innertext = PARSEINT (SCO.INNERTEXT) 2</p> <p>NEWBLOCK ();</p> <p>}</p> <p>IF (killedlines> = CLR_PER_LINE) {</p> <p>KilledLines- = CLR_PER_LINE;</p> <p>SPEED <MaxSpeed)</p> <p>SPEED ;</p> <p>Else</p> <p>Speed ​​= MaxSpeed;</p> <p>SPD.INNNERTEXT = Speed;</p> <p>ClearInterval (GameInterVal);</p> <p>GameInterval = WINDOW.SETINTERVAL ("Handle_Interval ()", (MaxSpeed-Speed ​​ 1) * 60);</p> <p>}</p> <p></ Script></p> <p><Script language = javascript for = document Event = onkeydown></p> <p>IF (Document.all)</p> <p>Document_onkeydown ()</p> <p></ Script></p> <p></ HEAD></p> <p><Body language = javascript TopMargin = "0" left margin = "0" scroll = "no"></p> <p><div id = block_div style = "Left: 60; TOP: 0"></p> <p><Table ID = Block_TBL Border = 0 Cellspacing = 0 Cellpadding = 0></p> <p><script></p> <p>IF (Document.all) {</p> <p>For (VAR i = 0; i <4; i ) {</p> <p>Document.write ("<TR>");</p> <p>For (VAR J = 0; J <4; J ) {</p> <p>Document.write ("<TD Style = /" Border: 1 Solid Black; / "> </ TD>");</p> <p>}</p> <p>Document.write ("</ TR>");</p> <p>}</p> <p>}</p> <p></ script></p> <p></ TABLE></p> <p></ div></p> <p><div id = nblock_div></p> <p><Table ID = NBLOCK_TBL BORDER = 0 Cellspacing = 0 Cellpadding = 0></p> <p><script></p> <p>IF (Document.all) {</p> <p>For (VAR i = 0; i <4; i ) {</p> <p>Document.write ("<TR>");</p> <p>For (VAR J = 0; J <4; J ) {</p> <p>Document.write ("<TD Style = /" Height: 40; Width: 40; Border: 1 OutSet Black; / "> </ td>");</p> <p>}</p> <p>Document.write ("</ TR>");</p> <p>}</p> <p>}</p> <p></ script></p> <p></ TABLE></p> <p></ div></p> <p><div id = Table_DIV></p> <p><Table ID = Table_TBL Border = 0 Cellspacing = 0 Cellpadding = 0></p> <p><script></p> <p>IF (Document.all) {</p> <p>FOR (var i = 0; i <22; i ) {</p> <p>Document.write ("<TR>");</p> <p>FOR (var j = 0; j <16; j ) {</p> <p>VAR D2 = i * 16 j;</p> <p>IF (Table [D2] == 1)</p> <p>Document.write ("<TD BGCOLOR = Navy> </ TD>");</p> <p>Else</p> <p>Document.write ("<TD Style = /" Background: black; / "> </ td>");</p> <p>Document.write ("</ TR>");</p> <p>}</p> <p>}</p> <p></ script></p> <p></ TABLE></p> <p></ div></p> <p><div id = title_div NOWRAP Style = "Width: 407; Height: 24; Font-Style: Normal; Font-Variant: Normal; Font-Weight: Normal; Font-Size: 12></p> <p><p align = "center"> Please enter the game speed (0-9): <input type = "text" size = 3 id = "spetedin" style = "font-size: 9pt" Name = "superso"></p> <p><Button OnClick = "begintet ()" id = "but"></p> <p><font style = "font-size: 9pt" face = "Arial Black" color = "# ff0000"> OK </ font> </ button> </ div></p> <p><div id = infobar_div></p> <p><table border = 1 bordercolor = # 000000 Cellspacing = 0 Cellpadding = 0></p> <p><tril = center></p> <p><TD Style = "Color: 99ccff; Font-size: 9pt; Width: 60;"> Game Speed: </ TD></p> <p><TD style = "color: red; font-size: 9pt;" ID = SPD> 1 </ td></p> <p><TD Style = "Color: 99ccff; font-size: 9pt; width: 60;"> Total score: </ td></p> <p><TD Style = "Color: Red; font-size: 9pt;" ID = SCO> 0 </ td></p> <p><TD Style = "Color: 99ccff; font-size: 9pt; width: 60;"> Clear line number: </ td></p> <p><TD Style = "Color: RED; Font-size: 9pt;" ID = CLL> 0 </ TD></p> <p></ TR></p> <p></ TABLE></p> <p></ div></p> <p><Script id = mainsection language = javaScript></p> <p>IF (Document.all) {</p> <p>NCID = Math.Round (Math.random () * (Colors.length-1));</p> <p>Bid = math.round (math.random () * (blocks.length-1);</p> <p>NextBlock = blocks [bid];</p> <p>NEWBLOCK ();</p> <p>}</p> <p>Function begintet () {</p> <p>Document.all.speedin.disabled = true</p> <p>Document.All.But.disabled = TRUE</p> <p>Speed ​​= parseint (Document.all.Speedin.Value);</p> <p>IF (isnan (speted) || speted == null || speted> maxSpeed ​​|| Speed ​​<1) Speed ​​= 1;</p> <p>SPD.INNNERTEXT = Speed;</p> <p>GameInterval = Window.setInterval ("Handle_Interval ()", (MaxSpeed-Speed ​​ 1) * 60);</p> <p>}</p> <p></ Script></p> <p></ Body></p> <p></ Html></p> <p>[Related resources] ◆ BHW98 column: http://www.9cbs.net/develop/author/netauthor/bhw98/</p> <p>First release: 2003-04-14 Last revision: 2003-04-14</p></div><div class="text-center mt-3 text-grey"> 转载请注明原文地址:https://www.9cbs.com/read-23670.html</div><div class="plugin d-flex justify-content-center mt-3"></div><hr><div class="row"><div class="col-lg-12 text-muted mt-2"><i class="icon-tags mr-2"></i><span class="badge border border-secondary mr-2"><h2 class="h6 mb-0 small"><a class="text-secondary" href="tag-2.html">9cbs</a></h2></span></div></div></div></div><div class="card card-postlist border-white shadow"><div class="card-body"><div class="card-title"><div class="d-flex justify-content-between"><div><b>New Post</b>(<span class="posts">0</span>) </div><div></div></div></div><ul class="postlist list-unstyled"> </ul></div></div><div class="d-none threadlist"><input type="checkbox" name="modtid" value="23670" checked /></div></div></div></div></div><footer class="text-muted small bg-dark py-4 mt-3" id="footer"><div class="container"><div class="row"><div class="col">CopyRight © 2020 All Rights Reserved </div><div class="col text-right">Processed: <b>0.043</b>, SQL: <b>9</b></div></div></div></footer><script src="./lang/en-us/lang.js?2.2.0"></script><script src="view/js/jquery.min.js?2.2.0"></script><script src="view/js/popper.min.js?2.2.0"></script><script src="view/js/bootstrap.min.js?2.2.0"></script><script src="view/js/xiuno.js?2.2.0"></script><script src="view/js/bootstrap-plugin.js?2.2.0"></script><script src="view/js/async.min.js?2.2.0"></script><script src="view/js/form.js?2.2.0"></script><script> var debug = DEBUG = 0; var url_rewrite_on = 1; var url_path = './'; var forumarr = {"1":"Tech"}; var fid = 1; var uid = 0; var gid = 0; xn.options.water_image_url = 'view/img/water-small.png'; </script><script src="view/js/wellcms.js?2.2.0"></script><a class="scroll-to-top rounded" href="javascript:void(0);"><i class="icon-angle-up"></i></a><a class="scroll-to-bottom rounded" href="javascript:void(0);" style="display: inline;"><i class="icon-angle-down"></i></a></body></html><script> var forum_url = 'list-1.html'; var safe_token = '7lC_2BTq5B9JEdbeQx7vIsLOBsW4E9_2FeHhG7g7CcuHEeMesF4G2nb82UU_2BNZD3uAOa_2FPYJ_2Bu6cWD20n8Oz'; var body = $('body'); body.on('submit', '#form', function() { var jthis = $(this); var jsubmit = jthis.find('#submit'); jthis.reset(); jsubmit.button('loading'); var postdata = jthis.serializeObject(); $.xpost(jthis.attr('action'), postdata, function(code, message) { if(code == 0) { location.reload(); } else { $.alert(message); jsubmit.button('reset'); } }); return false; }); function resize_image() { var jmessagelist = $('div.message'); var first_width = jmessagelist.width(); jmessagelist.each(function() { var jdiv = $(this); var maxwidth = jdiv.attr('isfirst') ? first_width : jdiv.width(); var jmessage_width = Math.min(jdiv.width(), maxwidth); jdiv.find('img, embed, iframe, video').each(function() { var jimg = $(this); var img_width = this.org_width; var img_height = this.org_height; if(!img_width) { var img_width = jimg.attr('width'); var img_height = jimg.attr('height'); this.org_width = img_width; this.org_height = img_height; } if(img_width > jmessage_width) { if(this.tagName == 'IMG') { jimg.width(jmessage_width); jimg.css('height', 'auto'); jimg.css('cursor', 'pointer'); jimg.on('click', function() { }); } else { jimg.width(jmessage_width); var height = (img_height / img_width) * jimg.width(); jimg.height(height); } } }); }); } function resize_table() { $('div.message').each(function() { var jdiv = $(this); jdiv.find('table').addClass('table').wrap('<div class="table-responsive"></div>'); }); } $(function() { resize_image(); resize_table(); $(window).on('resize', resize_image); }); var jmessage = $('#message'); jmessage.on('focus', function() {if(jmessage.t) { clearTimeout(jmessage.t); jmessage.t = null; } jmessage.css('height', '6rem'); }); jmessage.on('blur', function() {jmessage.t = setTimeout(function() { jmessage.css('height', '2.5rem');}, 1000); }); $('#nav li[data-active="fid-1"]').addClass('active'); </script>