• We just launched and are currently in beta. Join us as we build and grow the community.

Air Code Generator Using Javascript

SachaTek

OVA Curator
S Rep
0
0
0
Rep
0
S Vouches
0
0
0
Vouches
0
Posts
85
Likes
97
Bits
2 MONTHS
2 2 MONTHS OF SERVICE
LEVEL 1 300 XP
In tutorial, you will learn how to make an air code generator. just follow the steps below and download the source code. You can also use this code to your projects or systems.

DIRECTIONS

Creating our index.php

  1. <html

    >
  2. <head

    >
  3. <title

    >

    (AC) AirCode</

    title

    >
  4. <meta

    http-equiv

    =

    "Content-Type"

    content

    =

    "text/html;charset=Windows_1258"

    >
  5. <meta

    content

    =

    "tchouky"

    name

    =

    "AC"

    >
  6. <meta

    content

    =

    "generator"

    name

    =

    "AirCode"

    >
  7. <META

    HTTP-EQUIV

    =

    "imagetoolbar"

    CONTENT

    =

    "no"

    >
  8. <meta

    content

    =

    "generator"

    name

    =

    "Randomizer"

    >
  9. <link

    href

    =

    "style.css"

    rel

    =

    "stylesheet"

    >
  10. <script

    type

    =

    "text/javascript"

    src

    =

    "class_of_ac.js"

    ></

    script

    >
  11. <style

    type

    =

    "text/css"

    >

    .ac_xamp_td {
  12. BORDER-RIGHT: red 1px solid; BORDER-TOP: red 1px solid; FONT-SIZE: 32px; BORDER-LEFT: red 1px solid; WIDTH: 48px; BORDER-BOTTOM: red 1px solid; TEXT-ALIGN: center
  13. }
  14. .ac_xamp_ref_table {
  15. BORDER-RIGHT: red 1px solid; BORDER-TOP: red 1px solid; BORDER-LEFT: red 1px solid; BORDER-BOTTOM: red 1px solid
  16. }
  17. </

    style

    >
  18. <script

    type

    =

    "text/javascript"

    >
  19. var aircode_up = [
  20. '\u030d', /* ? */ '\u030e', /* ? */ '\u0304', /* ? */ '\u0305', /* ? */
  21. '\u033f', /* ? */ '\u0311', /* ? */ '\u0306', /* ? */ '\u0310', /* ? */
  22. '\u0352', /* ? */ '\u0357', /* ? */ '\u0351', /* ? */ '\u0307', /* ? */
  23. '\u0308', /* ? */ '\u030a', /* ? */ '\u0342', /* ? */ '\u0343', /* ? */
  24. '\u0344', /* ? */ '\u034a', /* ? */ '\u034b', /* ? */ '\u034c', /* ? */
  25. '\u0303', /* Þ */ '\u0302', /* ? */ '\u030c', /* ? */ '\u0350', /* ? */
  26. '\u0300', /* Ì */ '\u0301', /* ì */ '\u030b', /* ? */ '\u030f', /* ? */
  27. '\u0312', /* ? */ '\u0313', /* ? */ '\u0314', /* ? */ '\u033d', /* ? */
  28. '\u0309', /* Ò */ '\u0363', /* ? */ '\u0364', /* ? */ '\u0365', /* ? */
  29. '\u0366', /* ? */ '\u0367', /* ? */ '\u0368', /* ? */ '\u0369', /* ? */
  30. '\u036a', /* ? */ '\u036b', /* ? */ '\u036c', /* ? */ '\u036d', /* ? */
  31. '\u036e', /* ? */ '\u036f', /* ? */ '\u033e', /* ? */ '\u035b', /* ? */
  32. '\u0346', /* ? */ '\u031a' /* ? */
  33. ];

  34. //those go DOWN
  35. var aircode_down = [
  36. '\u0316', /* ? */ '\u0317', /* ? */ '\u0318', /* ? */ '\u0319', /* ? */
  37. '\u031c', /* ? */ '\u031d', /* ? */ '\u031e', /* ? */ '\u031f', /* ? */
  38. '\u0320', /* ? */ '\u0324', /* ? */ '\u0325', /* ? */ '\u0326', /* ? */
  39. '\u0329', /* ? */ '\u032a', /* ? */ '\u032b', /* ? */ '\u032c', /* ? */
  40. '\u032d', /* ? */ '\u032e', /* ? */ '\u032f', /* ? */ '\u0330', /* ? */
  41. '\u0331', /* ? */ '\u0332', /* ? */ '\u0333', /* ? */ '\u0339', /* ? */
  42. '\u033a', /* ? */ '\u033b', /* ? */ '\u033c', /* ? */ '\u0345', /* ? */
  43. '\u0347', /* ? */ '\u0348', /* ? */ '\u0349', /* ? */ '\u034d', /* ? */
  44. '\u034e', /* ? */ '\u0353', /* ? */ '\u0354', /* ? */ '\u0355', /* ? */
  45. '\u0356', /* ? */ '\u0359', /* ? */ '\u035a', /* ? */ '\u0323' /* ò */
  46. ];

  47. //those always stay in the middle
  48. var aircode_mid = [
  49. '\u0315', /* ? */ '\u031b', /* ? */ '\u0340', /* ? */ '\u0341', /* ? */
  50. '\u0358', /* ? */ '\u0321', /* ? */ '\u0322', /* ? */ '\u0327', /* ? */
  51. '\u0328', /* ? */ '\u0334', /* ? */ '\u0335', /* ? */ '\u0336', /* ? */
  52. '\u034f', /* ? */ '\u035c', /* ? */ '\u035d', /* ? */ '\u035e', /* ? */
  53. '\u035f', /* ? */ '\u0360', /* ? */ '\u0362', /* ? */ '\u0338', /* ? */
  54. '\u0337', /* ? */ '\u0361', /* ? */ '\u0489' /* ?_ */
  55. ];

  56. // random function
  57. //---------------------------------------------------

  58. //gets an int between 0 and max
  59. function rand(max)
  60. {
  61. return Math.floor(Math.random() * max);
  62. }

  63. //gets a random char from a AC char table
  64. function rand_ac(array)
  65. {
  66. var ind = Math.floor(Math.random() * array.length);
  67. return array[ind];
  68. }

  69. // utils funcs
  70. //---------------------------------------------------

  71. //hide show element
  72. function toggle(id)
  73. {
  74. if(document.getElementById(id).style.display == "none")
  75. document.getElementById(id).style.display = "block";
  76. else
  77. document.getElementById(id).style.display = "none";
  78. }

  79. //lookup char to know if its a zalgo char or not
  80. function is_ac_char(c)
  81. {
  82. var i;
  83. for(i=0; i<aircode_up.length; i++)
  84. if(

    c ==

    aircode_up[

    i]

    )
  85. return true;
  86. for

    (

    i=

    0

    ; i<aircode_down.length; i++)
  87. if(

    c ==

    aircode_down[

    i]

    )
  88. return true;
  89. for

    (

    i=

    0

    ; i<aircode_mid.length; i++)
  90. if(

    c ==

    aircode_mid[

    i]

    )
  91. return true;
  92. return false;
  93. }

  94. function draw_ac_table(

    elid)
  95. {
  96. var container =

    document.getElementById(

    elid)

    ;
  97. var html =

    ''

    ;

  98. html +=

    '<b>

    Chars going up:</

    b

    ><br

    /

    >

    \n';
  99. html += '<table

    class

    =

    "ac_xamp_ref_table"

    >

    \n';
  100. html += '<tr

    >

    \n';
  101. for(var i=0; i<aircode_up.length; i++)
  102. {
  103. if(

    !(

    i % 10

    )

    )
  104. html +=

    '</tr><tr>

    ';
  105. html += '<td

    class

    =

    "ac_xamp_td"

    >

    ' + aircode_up + '</

    td

    >

    \n';

    [*]}

    [*]html += '</

    tr

    >

    \n';

    [*]html += '</

    table

    >

    \n';

    [*]

    [*]html += '<br

    /

    ><b

    >

    Chars staying in the middle:</

    b

    ><br

    /

    >

    \n';

    [*]html += '<table

    class

    =

    "ac_xamp_ref_table"

    >

    \n';

    [*]html += '<tr

    >

    \n';

    [*]for(var i=0; i<aircode_mid.length; i++)

    [*]{

    [*]if(

    !(

    i % 10

    )

    )

    [*]html +=

    '</tr><tr>

    ';

    [*]html += '<td

    class

    =

    "ac_xamp_td"

    >

    ' + aircode_mid + '</

    td

    >

    \n';

    [*]}

    [*]html += '</

    tr

    >

    \n';

    [*]html += '</

    table

    >

    \n';

    [*]

    [*]html += '<br

    /

    ><b

    >

    Chars going down:</

    b

    ><br

    /

    >

    \n';

    [*]html += '<table

    class

    =

    "ac_xamp_ref_table"

    >

    \n';

    [*]html += '<tr

    >

    \n';

    [*]for(var i=0; i<aircode_down.length; i++)

    [*]{

    [*]if(

    !(

    i % 10

    )

    )

    [*]html +=

    '</tr><tr>

    ';

    [*]html += '<td

    class

    =

    "ac_xamp_td"

    >

    ' + aircode_down + '</

    td

    >

    \n';

    [*]}

    [*]html += '</

    tr

    >

    \n';

    [*]html += '</

    table

    >

    \n';

    [*]

    [*]container.innerHTML = html;

    [*]}

    [*]

    [*]// main shit

    [*]//---------------------------------------------------

    [*]function xamp_textarea(id)

    [*]{

    [*]var p = document.getElementById(id);

    [*]var txt = p.value;

    [*]var newtxt = '';

    [*]for(var i=0; i<txt.length; i++)

    [*]{

    [*]if(

    is_ac_char(

    txt.substr(

    i, 1

    )

    )

    )

    [*]continue;

    [*]

    [*]var num_up;

    [*]var num_mid;

    [*]var num_down;

    [*]

    [*]//

    add the normal character

    [*]newtxt +=

    txt.substr(

    i, 1

    )

    ;

    [*]

    [*]//

    options

    [*]if(

    document.getElementById(

    'ac_opt_mini'

    )

    .checked

    )

    [*]{

    [*]num_up =

    rand(

    8

    )

    ;

    [*]num_mid =

    rand(

    2

    )

    ;

    [*]num_down =

    rand(

    8

    )

    ;

    [*]}

    [*]else if(

    document.getElementById(

    'ac_opt_normal'

    )

    .checked

    )

    [*]{

    [*]num_up =

    rand(

    16

    )

    /

    2

    + 1

    ;

    [*]num_mid =

    rand(

    6

    )

    /

    2

    ;

    [*]num_down =

    rand(

    16

    )

    /

    2

    + 1

    ;

    [*]}

    [*]else //

    maxi

    [*]{

    [*]num_up =

    rand(

    64

    )

    /

    4

    + 3

    ;

    [*]num_mid =

    rand(

    16

    )

    /

    4

    + 1

    ;

    [*]num_down =

    rand(

    64

    )

    /

    4

    + 3

    ;

    [*]}

    [*]

    [*]

    [*]if(

    document.getElementById(

    'ac_opt_up'

    )

    .checked

    )

    [*]for

    (

    var j=

    0

    ; j<num_up; j++)

    [*]newtxt +=

    rand_ac(

    aircode_up)

    ;

    [*]if(

    document.getElementById(

    'ac_opt_mid'

    )

    .checked

    )

    [*]for

    (

    var j=

    0

    ; j<num_mid; j++)

    [*]newtxt +=

    rand_ac(

    aircode_mid)

    ;

    [*]if(

    document.getElementById(

    'ac_opt_down'

    )

    .checked

    )

    [*]for

    (

    var j=

    0

    ; j<num_down; j++)

    [*]newtxt +=

    rand_ac(

    aircode_down)

    ;

    [*]}

    [*]

    [*]//

    result is in nextxt, display that

    [*]

    [*]//

    remove all children of lulz_container

    [*]var container =

    document.getElementById(

    'lulz_container'

    )

    ;

    [*]while(

    container.childNodes.length)

    [*]container.removeChild(

    container.childNodes[

    0

    ]

    )

    ;

    [*]

    [*]//

    build blocks for

    each line & create a <br

    /

    >

    [*]var lines = newtxt.split("\n");

    [*]for(var i=0; i<lines.length; i++)

    [*]{

    [*]var n =

    document.createElement(

    'text'

    )

    ;

    [*]n.innerHTML =

    lines[

    i]

    ;

    [*]container.appendChild(

    n)

    ;

    [*]var nl =

    document.createElement(

    'br'

    )

    ;

    [*]container.appendChild(

    nl)

    ;

    [*]}

    [*]

    [*]//

    done

    [*]}

    [*]/

    * ]

    ]

    >

    */

    [*]</

    script

    >

    [*]

    [*]

    [*]

    [*]<script

    language

    =

    "javascript"

    >

    [*]document.onmousedown=disableclick;

    [*]status="Right Click Disabled";

    [*]Function disableclick(event)

    [*]{

    [*]if(event.button==2)

    [*]{

    [*]alert(status);

    [*]return false;

    [*]}

    [*]}

    [*]</

    script

    >

    [*]<script

    language

    =

    "javascript"

    >

    [*]document.onmousedown=disableclick;

    [*]status="Right Click Disabled";

    [*]Function disableclick(e)

    [*]{

    [*]if(event.button==2)

    [*]{

    [*]alert(status);

    [*]return false;

    [*]}

    [*]}

    [*]</

    script

    >

    [*]<SCRIPT

    language

    =

    JavaScript>

    [*]<!-- http://www.fb.com/ijsamp -->

    [*]var message = "Oops! AC Didn't allow this object!";

    [*]function rtclickcheck(keyp){ if (navigator.appName == "Netscape" && keyp.which == 3){ alert(message);

    return false; }

    [*]if (navigator.appVersion.indexOf("MSIE") != -1 && event.button == 2) { alert(message);

    return false; } }

    [*]document.onmousedown = rtclickcheck;

    [*]</

    SCRIPT

    >

    [*]

    [*]

    [*]</

    head

    >

    [*]

    [*]<body

    >

    [*]

    [*]

    [*]<body

    oncontextmenu=

    "return false"

    >

    [*]...

    [*]</

    body

    >

    [*]<Table

    >

    [*]<tr

    oncontextmenu=

    "return false"

    >

    [*]<td

    >

    [*]<asp:datagrid id

    =

    "dgGrid1"

    >

    ---</

    asp:datagrid>

    [*]</

    td

    >

    [*]</

    tr

    >

    [*]</

    Table

    >

    [*]

    [*]<h1

    ><center

    >

    Air Code Randomiser</

    h1

    >

    [*]<p

    ></

    p

    >

    [*]<table

    id

    =

    "actable"

    >

    [*]<td

    id

    =

    "lulz_container"

    style

    =

    "BORDER-RIGHT: green 5px solid; PADDING-RIGHT: 5px; BORDER-TOP: green 5px solid; PADDING-LEFT: 5px; PADDING-BOTTOM: 5px; BORDER-LEFT: green 5px solid; PADDING-TOP: 5px; BORDER-BOTTOM: green 5px solid"

    width

    =

    "250"

    >

    [*]<p

    id

    =

    "lulz"

    ></

    p

    >

    [*]</

    td

    >

    [*]<tr

    >

    [*]

    [*]

    [*]<td

    style

    =

    "BORDER-RIGHT: #0066cc 5px solid; BORDER-TOP: #0066cc 5px solid; BORDER-LEFT: #0066cc 5px solid; BORDER-BOTTOM: #0066cc 5px solid"

    width

    =

    "150"

    >

    [*]<font

    color

    =

    "#0066cc"

    ><textarea

    id

    =

    "xamp_txt"

    style

    =

    "FONT-FAMILY: Arial"

    color

    =

    "red"

    rows

    =

    "13"

    cols

    =

    "80"

    >

    Invoker list.

    [*]Type Your AirCode here (AC)</

    textarea

    >

    [*]

    [*]<form

    id

    =

    "xamp_form"

    action>

    [*]<input

    type

    =

    "button"

    class

    =

    "btn btn-success btn-large"

    id

    =

    "xamp_btn"

    onclick

    =

    "xamp_textarea('xamp_txt');"

    type

    =

    "button"

    value

    =

    "Generate AC"

    >

    [*]<input

    class

    =

    "btn btn-danger btn-large"

    id

    =

    "xamp_ref"

    onclick

    =

    "toggle('reference');"

    type

    =

    "button"

    value

    =

    "Show AirCode List"

    ><i

    class

    =

    "icon-white icon-qrcode"

    >

    [*]

    [*]<br

    /

    ></

    font

    >

    [*]

    [*]<table

    >

    [*]<tr

    >

    [*]<td

    ><b

    ><font

    color

    =

    "green"

    >

    Style</

    b

    ></

    font

    ><br

    >

    [*]<font

    color

    =

    "gray"

    ><input

    id

    =

    "ac_opt_up"

    type

    =

    "checkbox"

    >

    AirCode Top<BR

    >

    [*]<input

    id

    =

    "ac_opt_mid"

    type

    =

    "checkbox"

    CHECKED>

    AirCode Centre<BR

    >

    [*]<input

    id

    =

    "ac_opt_down"

    type

    =

    "checkbox"

    CHECKED>

    AirCode Bottom<BR

    >

    [*]</

    td

    >

    [*]

    [*]<td

    ><b

    ><font

    color

    =

    "red"

    >

    Range Effect</

    b

    ></

    font

    ><br

    >

    [*]<font

    color

    =

    "gray"

    ><input

    id

    =

    "ac_opt_mini"

    type

    =

    "radio"

    name

    =

    "optval"

    CHECKED>

    Short<BR

    >

    [*]<input

    id

    =

    "ac_opt_normal"

    type

    =

    "radio"

    name

    =

    "optval"

    >

    Medium<BR

    >

    [*]<input

    id

    =

    "ac_opt_maxi"

    type

    =

    "radio"

    name

    =

    "optval"

    >

    Long<BR

    >

    [*]</

    td

    >

    [*]</

    tr

    >

    [*]</

    table

    >

    [*]</

    form

    >

    [*]<script

    type

    =

    "text/javascript"

    >

    [*]xamp_textarea('xamp_txt');

    [*]</

    script

    >

    [*]

    [*]</

    TD

    >

    [*]</

    tr

    >

    [*]</

    TABLE

    >

    [*]

    [*]<div

    id

    =

    "reference"

    style

    =

    "DISPLAY: none"

    >

    [*]<br

    /

    >

    [*]

    [*]</

    body

    >

    [*]</

    html

    >



Creating our style.css

  1. button

    ,
  2. input,
  3. textarea,
  4. .uneditable-input

    {
  5. margin-left

    :

    0

    ;
  6. }
  7. .controls-row

    [

    class*=

    "span"

    ]

    +

    [

    class*=

    "span"

    ]

    {
  8. margin-left

    :

    20px

    ;
  9. }
  10. input.span12

    ,

    textarea.span12

    ,

    .uneditable-input

    .span12

    {
  11. width

    :

    926px

    ;
  12. }
  13. input.span11

    ,

    textarea.span11

    ,

    .uneditable-input

    .span11

    {
  14. width

    :

    846px

    ;
  15. }
  16. input.span10

    ,

    textarea.span10

    ,

    .uneditable-input

    .span10

    {
  17. width

    :

    766px

    ;
  18. }
  19. input.span9

    ,

    textarea.span9

    ,

    .uneditable-input

    .span9

    {
  20. width

    :

    686px

    ;
  21. }
  22. input.span8

    ,

    textarea.span8

    ,

    .uneditable-input

    .span8

    {
  23. width

    :

    606px

    ;
  24. }
  25. input.span7

    ,

    textarea.span7

    ,

    .uneditable-input

    .span7

    {
  26. width

    :

    526px

    ;
  27. }
  28. input.span6

    ,

    textarea.span6

    ,

    .uneditable-input

    .span6

    {
  29. width

    :

    446px

    ;
  30. }
  31. input.span5

    ,

    textarea.span5

    ,

    .uneditable-input

    .span5

    {
  32. width

    :

    366px

    ;
  33. }
  34. input.span4

    ,

    textarea.span4

    ,

    .uneditable-input

    .span4

    {
  35. width

    :

    286px

    ;
  36. }
  37. input.span3

    ,

    textarea.span3

    ,

    .uneditable-input

    .span3

    {
  38. width

    :

    206px

    ;
  39. }
  40. input.span2

    ,

    textarea.span2

    ,

    .uneditable-input

    .span2

    {
  41. width

    :

    126px

    ;
  42. }
  43. input.span1

    ,

    textarea.span1

    ,

    .uneditable-input

    .span1

    {
  44. width

    :

    46px

    ;
  45. }
  46. .controls-row

    {
  47. *

    zoom:

    1

    ;
  48. }
  49. .controls-row

    :

    before

    ,
  50. .controls-row

    :

    after

    {
  51. display

    :

    table

    ;
  52. content

    :

    ""

    ;
  53. line-height

    :

    0

    ;
  54. }
  55. .controls-row

    :

    after

    {
  56. clear

    :

    both

    ;
  57. }
  58. .controls-row

    [

    class*=

    "span"

    ]

    ,
  59. .row-fluid

    .controls-row

    [

    class*=

    "span"

    ]

    {
  60. float

    :

    left

    ;
  61. }
  62. .controls-row

    .checkbox[

    class*=

    "span"

    ]

    ,
  63. .controls-row

    .radio[

    class*=

    "span"

    ]

    {
  64. padding-top

    :

    5px

    ;
  65. }
  66. input[

    disabled

    ]

    ,
  67. select[

    disabled

    ]

    ,
  68. textarea[

    disabled

    ]

    ,
  69. input[

    readonly]

    ,
  70. select[

    readonly]

    ,
  71. textarea[

    readonly]

    {
  72. cursor

    :

    not-allowed;
  73. background-color

    :

    #eeeeee

    ;
  74. }
  75. input[

    type=

    "radio"

    ]

    [

    disabled

    ]

    ,
  76. input[

    type=

    "checkbox"

    ]

    [

    disabled

    ]

    ,
  77. input[

    type=

    "radio"

    ]

    [

    readonly]

    ,
  78. input[

    type=

    "checkbox"

    ]

    [

    readonly]

    {
  79. background-color

    :

    transparent

    ;
  80. }
  81. .control-group

    .warning

    .control-label,
  82. .control-group

    .warning

    .help-block,
  83. .control-group

    .warning

    .help-inline

    {
  84. color

    :

    #c09853

    ;
  85. }
  86. .control-group

    .warning

    .checkbox,
  87. .control-group

    .warning

    .radio,
  88. .control-group

    .warning

    input,
  89. .control-group

    .warning

    select,
  90. .control-group

    .warning

    textarea {
  91. color

    :

    #c09853

    ;
  92. }
  93. .control-group

    .warning

    input,
  94. .control-group

    .warning

    select,
  95. .control-group

    .warning

    textarea {
  96. border-color

    :

    #c09853

    ;
  97. -webkit-box-shadow:

    inset

    0

    1px

    1px

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    0.075

    )

    ;
  98. -moz-box-shadow:

    inset

    0

    1px

    1px

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    0.075

    )

    ;
  99. box-shadow

    :

    inset

    0

    1px

    1px

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    0.075

    )

    ;
  100. }
  101. .control-group

    .warning

    input:

    focus

    ,
  102. .control-group

    .warning

    select:

    focus

    ,
  103. .control-group

    .warning

    textarea:

    focus

    {
  104. border-color

    :

    #a47e3c

    ;
  105. -webkit-box-shadow:

    inset

    0

    1px

    1px

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    0.075

    )

    ,

    0

    0

    6px

    #dbc59e

    ;
  106. -moz-box-shadow:

    inset

    0

    1px

    1px

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    0.075

    )

    ,

    0

    0

    6px

    #dbc59e

    ;
  107. box-shadow

    :

    inset

    0

    1px

    1px

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    0.075

    )

    ,

    0

    0

    6px

    #dbc59e

    ;
  108. }
  109. .control-group

    .warning

    .input-prepend

    .add-on,
  110. .control-group

    .warning

    .input-append

    .add-on

    {
  111. color

    :

    #c09853

    ;
  112. background-color

    :

    #fcf8e3

    ;
  113. border-color

    :

    #c09853

    ;
  114. }
  115. .control-group

    .error

    .control-label,
  116. .control-group

    .error

    .help-block,
  117. .control-group

    .error

    .help-inline

    {
  118. color

    :

    #b94a48

    ;
  119. }
  120. .control-group

    .error

    .checkbox,
  121. .control-group

    .error

    .radio,
  122. .control-group

    .error

    input,
  123. .control-group

    .error

    select,
  124. .control-group

    .error

    textarea {
  125. color

    :

    #b94a48

    ;
  126. }
  127. .control-group

    .error

    input,
  128. .control-group

    .error

    select,
  129. .control-group

    .error

    textarea {
  130. border-color

    :

    #b94a48

    ;
  131. -webkit-box-shadow:

    inset

    0

    1px

    1px

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    0.075

    )

    ;
  132. -moz-box-shadow:

    inset

    0

    1px

    1px

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    0.075

    )

    ;
  133. box-shadow

    :

    inset

    0

    1px

    1px

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    0.075

    )

    ;
  134. }
  135. .control-group

    .error

    input:

    focus

    ,
  136. .control-group

    .error

    select:

    focus

    ,
  137. .control-group

    .error

    textarea:

    focus

    {
  138. border-color

    :

    #953b39

    ;
  139. -webkit-box-shadow:

    inset

    0

    1px

    1px

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    0.075

    )

    ,

    0

    0

    6px

    #d59392

    ;
  140. -moz-box-shadow:

    inset

    0

    1px

    1px

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    0.075

    )

    ,

    0

    0

    6px

    #d59392

    ;
  141. box-shadow

    :

    inset

    0

    1px

    1px

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    0.075

    )

    ,

    0

    0

    6px

    #d59392

    ;
  142. }
  143. .control-group

    .error

    .input-prepend

    .add-on,
  144. .control-group

    .error

    .input-append

    .add-on

    {
  145. color

    :

    #b94a48

    ;
  146. background-color

    :

    #f2dede

    ;
  147. border-color

    :

    #b94a48

    ;
  148. }
  149. .control-group

    .success

    .control-label,
  150. .control-group

    .success

    .help-block,
  151. .control-group

    .success

    .help-inline

    {
  152. color

    :

    #468847

    ;
  153. }
  154. .control-group

    .success

    .checkbox,
  155. .control-group

    .success

    .radio,
  156. .control-group

    .success

    input,
  157. .control-group

    .success

    select,
  158. .control-group

    .success

    textarea {
  159. color

    :

    #468847

    ;
  160. }
  161. .control-group

    .success

    input,
  162. .control-group

    .success

    select,
  163. .control-group

    .success

    textarea {
  164. border-color

    :

    #468847

    ;
  165. -webkit-box-shadow:

    inset

    0

    1px

    1px

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    0.075

    )

    ;
  166. -moz-box-shadow:

    inset

    0

    1px

    1px

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    0.075

    )

    ;
  167. box-shadow

    :

    inset

    0

    1px

    1px

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    0.075

    )

    ;
  168. }
  169. .control-group

    .success

    input:

    focus

    ,
  170. .control-group

    .success

    select:

    focus

    ,
  171. .control-group

    .success

    textarea:

    focus

    {
  172. border-color

    :

    #356635

    ;
  173. -webkit-box-shadow:

    inset

    0

    1px

    1px

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    0.075

    )

    ,

    0

    0

    6px

    #7aba7b

    ;
  174. -moz-box-shadow:

    inset

    0

    1px

    1px

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    0.075

    )

    ,

    0

    0

    6px

    #7aba7b

    ;
  175. box-shadow

    :

    inset

    0

    1px

    1px

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    0.075

    )

    ,

    0

    0

    6px

    #7aba7b

    ;
  176. }
  177. .control-group

    .success

    .input-prepend

    .add-on,
  178. .control-group

    .success

    .input-append

    .add-on

    {
  179. color

    :

    #468847

    ;
  180. background-color

    :

    #dff0d8

    ;
  181. border-color

    :

    #468847

    ;
  182. }
  183. .control-group

    .info

    .control-label,
  184. .control-group

    .info

    .help-block,
  185. .control-group

    .info

    .help-inline

    {
  186. color

    :

    #3a87ad

    ;
  187. }
  188. .control-group

    .info

    .checkbox,
  189. .control-group

    .info

    .radio,
  190. .control-group

    .info

    input,
  191. .control-group

    .info

    select,
  192. .control-group

    .info

    textarea {
  193. color

    :

    #3a87ad

    ;
  194. }
  195. .control-group

    .info

    input,
  196. .control-group

    .info

    select,
  197. .control-group

    .info

    textarea {
  198. border-color

    :

    #3a87ad

    ;
  199. -webkit-box-shadow:

    inset

    0

    1px

    1px

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    0.075

    )

    ;
  200. -moz-box-shadow:

    inset

    0

    1px

    1px

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    0.075

    )

    ;
  201. box-shadow

    :

    inset

    0

    1px

    1px

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    0.075

    )

    ;
  202. }
  203. .control-group

    .info

    input:

    focus

    ,
  204. .control-group

    .info

    select:

    focus

    ,
  205. .control-group

    .info

    textarea:

    focus

    {
  206. border-color

    :

    #2d6987

    ;
  207. -webkit-box-shadow:

    inset

    0

    1px

    1px

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    0.075

    )

    ,

    0

    0

    6px

    #7ab5d3

    ;
  208. -moz-box-shadow:

    inset

    0

    1px

    1px

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    0.075

    )

    ,

    0

    0

    6px

    #7ab5d3

    ;
  209. box-shadow

    :

    inset

    0

    1px

    1px

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    0.075

    )

    ,

    0

    0

    6px

    #7ab5d3

    ;
  210. }
  211. .control-group

    .info

    .input-prepend

    .add-on,
  212. .control-group

    .info

    .input-append

    .add-on

    {
  213. color

    :

    #3a87ad

    ;
  214. background-color

    :

    #d9edf7

    ;
  215. border-color

    :

    #3a87ad

    ;
  216. }
  217. input:

    focus

    :

    invalid

    ,
  218. textarea:

    focus

    :

    invalid

    ,
  219. select:

    focus

    :

    invalid

    {
  220. color

    :

    #b94a48

    ;
  221. border-color

    :

    #ee5f5b

    ;
  222. }
  223. input:

    focus

    :

    invalid

    :

    focus

    ,
  224. textarea:

    focus

    :

    invalid

    :

    focus

    ,
  225. select:

    focus

    :

    invalid

    :

    focus

    {
  226. border-color

    :

    #e9322d

    ;
  227. -webkit-box-shadow:

    0

    0

    6px

    #f8b9b7

    ;
  228. -moz-box-shadow:

    0

    0

    6px

    #f8b9b7

    ;
  229. box-shadow

    :

    0

    0

    6px

    #f8b9b7

    ;
  230. }
  231. .form-actions

    {
  232. padding

    :

    19px

    20px

    20px

    ;
  233. margin-top

    :

    20px

    ;
  234. margin-bottom

    :

    20px

    ;
  235. background-color

    :

    #f5f5f5

    ;
  236. border-top

    :

    1px

    solid

    #e5e5e5

    ;
  237. *

    zoom:

    1

    ;
  238. }
  239. .form-actions

    :

    before

    ,
  240. .form-actions

    :

    after

    {
  241. display

    :

    table

    ;
  242. content

    :

    ""

    ;
  243. line-height

    :

    0

    ;
  244. }
  245. .form-actions

    :

    after

    {
  246. clear

    :

    both

    ;
  247. }
  248. .help-block,
  249. .help-inline

    {
  250. color

    :

    #595959

    ;
  251. }
  252. .help-block

    {
  253. display

    :

    block

    ;
  254. margin-bottom

    :

    10px

    ;
  255. }
  256. .help-inline

    {
  257. display

    :

    inline-block

    ;
  258. *

    display

    :

    inline

    ;
  259. /* IE7 inline-block hack */

  260. *

    zoom:

    1

    ;
  261. vertical-align

    :

    middle

    ;
  262. padding-left

    :

    5px

    ;
  263. }
  264. .input-append,
  265. .input-prepend

    {
  266. margin-bottom

    :

    5px

    ;
  267. font-size

    :

    0

    ;
  268. white-space

    :

    nowrap

    ;
  269. }
  270. .input-append

    input,
  271. .input-prepend

    input,
  272. .input-append

    select,
  273. .input-prepend

    select,
  274. .input-append

    .uneditable-input,
  275. .input-prepend

    .uneditable-input,
  276. .input-append

    .dropdown-menu,
  277. .input-prepend

    .dropdown-menu

    {
  278. font-size

    :

    14px

    ;
  279. }
  280. .input-append

    input,
  281. .input-prepend

    input,
  282. .input-append

    select,
  283. .input-prepend

    select,
  284. .input-append

    .uneditable-input,
  285. .input-prepend

    .uneditable-input

    {
  286. position

    :

    relative

    ;
  287. margin-bottom

    :

    0

    ;
  288. *

    margin-left

    :

    0

    ;
  289. vertical-align

    :

    top

    ;
  290. -webkit-border-radius:

    0

    4px

    4px

    0

    ;
  291. -moz-border-radius:

    0

    4px

    4px

    0

    ;
  292. border-radius

    :

    0

    4px

    4px

    0

    ;
  293. }
  294. .input-append

    input:

    focus

    ,
  295. .input-prepend

    input:

    focus

    ,
  296. .input-append

    select:

    focus

    ,
  297. .input-prepend

    select:

    focus

    ,
  298. .input-append

    .uneditable-input

    :

    focus

    ,
  299. .input-prepend

    .uneditable-input

    :

    focus

    {
  300. z-index

    :

    2

    ;
  301. }
  302. .input-append

    .add-on,
  303. .input-prepend

    .add-on

    {
  304. display

    :

    inline-block

    ;
  305. width

    :

    auto

    ;
  306. height

    :

    20px

    ;
  307. min-width

    :

    16px

    ;
  308. padding

    :

    4px

    5px

    ;
  309. font-size

    :

    14px

    ;
  310. font-weight

    :

    normal

    ;
  311. line-height

    :

    20px

    ;
  312. text-align

    :

    center

    ;
  313. text-shadow

    :

    0

    1px

    0

    #ffffff

    ;
  314. background-color

    :

    #eeeeee

    ;
  315. border

    :

    1px

    solid

    #ccc

    ;
  316. }
  317. .input-append

    .add-on,
  318. .input-prepend

    .add-on,
  319. .input-append

    .btn,
  320. .input-prepend

    .btn,
  321. .input-append

    .btn-group

    >

    .dropdown-toggle,
  322. .input-prepend

    .btn-group

    >

    .dropdown-toggle

    {
  323. vertical-align

    :

    top

    ;
  324. -webkit-border-radius:

    0

    ;
  325. -moz-border-radius:

    0

    ;
  326. border-radius

    :

    0

    ;
  327. }
  328. .input-append

    .active,
  329. .input-prepend

    .active

    {
  330. background-color

    :

    #a9dba9

    ;
  331. border-color

    :

    #46a546

    ;
  332. }
  333. .input-prepend

    .add-on,
  334. .input-prepend

    .btn

    {
  335. margin-right

    :

    -1px

    ;
  336. }
  337. .input-prepend

    .add-on

    :

    first-child

    ,
  338. .input-prepend

    .btn

    :

    first-child

    {
  339. -webkit-border-radius:

    4px

    0

    0

    4px

    ;
  340. -moz-border-radius:

    4px

    0

    0

    4px

    ;
  341. border-radius

    :

    4px

    0

    0

    4px

    ;
  342. }
  343. .input-append

    input,
  344. .input-append

    select,
  345. .input-append

    .uneditable-input

    {
  346. -webkit-border-radius:

    4px

    0

    0

    4px

    ;
  347. -moz-border-radius:

    4px

    0

    0

    4px

    ;
  348. border-radius

    :

    4px

    0

    0

    4px

    ;
  349. }
  350. .input-append

    input +

    .btn-group

    .btn

    :

    last-child

    ,
  351. .input-append

    select +

    .btn-group

    .btn

    :

    last-child

    ,
  352. .input-append

    .uneditable-input

    +

    .btn-group

    .btn

    :

    last-child

    {
  353. -webkit-border-radius:

    0

    4px

    4px

    0

    ;
  354. -moz-border-radius:

    0

    4px

    4px

    0

    ;
  355. border-radius

    :

    0

    4px

    4px

    0

    ;
  356. }
  357. .input-append

    .add-on,
  358. .input-append

    .btn,
  359. .input-append

    .btn-group

    {
  360. margin-left

    :

    -1px

    ;
  361. }
  362. .input-append

    .add-on

    :

    last-child

    ,
  363. .input-append

    .btn

    :

    last-child

    ,
  364. .input-append

    .btn-group

    :

    last-child

    >

    .dropdown-toggle

    {
  365. -webkit-border-radius:

    0

    4px

    4px

    0

    ;
  366. -moz-border-radius:

    0

    4px

    4px

    0

    ;
  367. border-radius

    :

    0

    4px

    4px

    0

    ;
  368. }
  369. .input-prepend

    .input-append

    input,
  370. .input-prepend

    .input-append

    select,
  371. .input-prepend

    .input-append

    .uneditable-input

    {
  372. -webkit-border-radius:

    0

    ;
  373. -moz-border-radius:

    0

    ;
  374. border-radius

    :

    0

    ;
  375. }
  376. .input-prepend

    .input-append

    input +

    .btn-group

    .btn,
  377. .input-prepend

    .input-append

    select +

    .btn-group

    .btn,
  378. .input-prepend

    .input-append

    .uneditable-input

    +

    .btn-group

    .btn

    {
  379. -webkit-border-radius:

    0

    4px

    4px

    0

    ;
  380. -moz-border-radius:

    0

    4px

    4px

    0

    ;
  381. border-radius

    :

    0

    4px

    4px

    0

    ;
  382. }
  383. .input-prepend

    .input-append

    .add-on

    :

    first-child

    ,
  384. .input-prepend

    .input-append

    .btn

    :

    first-child

    {
  385. margin-right

    :

    -1px

    ;
  386. -webkit-border-radius:

    4px

    0

    0

    4px

    ;
  387. -moz-border-radius:

    4px

    0

    0

    4px

    ;
  388. border-radius

    :

    4px

    0

    0

    4px

    ;
  389. }
  390. .input-prepend

    .input-append

    .add-on

    :

    last-child

    ,
  391. .input-prepend

    .input-append

    .btn

    :

    last-child

    {
  392. margin-left

    :

    -1px

    ;
  393. -webkit-border-radius:

    0

    4px

    4px

    0

    ;
  394. -moz-border-radius:

    0

    4px

    4px

    0

    ;
  395. border-radius

    :

    0

    4px

    4px

    0

    ;
  396. }
  397. .input-prepend

    .input-append

    .btn-group

    :

    first-child

    {
  398. margin-left

    :

    0

    ;
  399. }
  400. input.search-query

    {
  401. padding-right

    :

    14px

    ;
  402. padding-right

    :

    4px

    \9

    ;
  403. padding-left

    :

    14px

    ;
  404. padding-left

    :

    4px

    \9

    ;
  405. /* IE7-8 doesn't have border-radius, so don't indent the padding */

  406. margin-bottom

    :

    0

    ;
  407. -webkit-border-radius:

    15px

    ;
  408. -moz-border-radius:

    15px

    ;
  409. border-radius

    :

    15px

    ;
  410. }
  411. html {
  412. background-color

    :

    #0066cc

    ;
  413. }
  414. body {
  415. background

    :

    #fff

    ;
  416. color

    :

    #333

    ;
  417. font-family

    :

    "Lucida Grande"

    ,

    Verdana,

    Arial,

    "Bitstream Vera Sans"

    ,

    sans-serif

    ;
  418. margin

    :

    2em

    auto

    ;
  419. width

    :

    700px

    ;
  420. padding

    :

    1em

    2em

    ;
  421. -moz-border-radius:

    11px

    ;
  422. -khtml-border-radius:

    11px

    ;
  423. -webkit-border-radius:

    11px

    ;
  424. border-radius

    :

    11px

    ;
  425. border

    :

    1px

    solid

    #dfdfdf

    ;
  426. }

  427. a {
  428. color

    :

    #2583ad

    ;
  429. text-decoration

    :

    none

    ;
  430. }

  431. a:

    hover

    {
  432. color

    :

    #d54e21

    ;
  433. }

  434. h1 {
  435. border-bottom

    :

    1px

    solid

    #dadada

    ;
  436. clear

    :

    both

    ;
  437. color

    :

    #666

    ;
  438. font

    :

    24px

    Georgia,

    "Times New Roman"

    ,

    Times,

    serif

    ;
  439. margin

    :

    5px

    0

    0

    -4px

    ;
  440. padding

    :

    0

    ;
  441. padding-bottom

    :

    7px

    ;
  442. }

  443. h2 {
  444. font-size

    :

    16px

    ;
  445. }

  446. p,

    li,

    dd,

    dt {
  447. padding-bottom

    :

    2px

    ;
  448. font-size

    :

    12px

    ;
  449. line-height

    :

    18px

    ;
  450. }

  451. code,

    .code

    {
  452. font-size

    :

    13px

    ;
  453. }

  454. ul,

    ol,

    dl {
  455. padding

    :

    5px

    5px

    5px

    22px

    ;
  456. }

  457. a img {
  458. border

    :

    0
  459. }
  460. abbr {
  461. border

    :

    0

    ;
  462. font-variant

    :

    normal

    ;
  463. }
  464. #logo

    {
  465. margin

    :

    6px

    0

    14px

    0

    ;
  466. border-bottom

    :

    none

    ;
  467. text-align

    :

    center
  468. }
  469. .step

    {
  470. margin

    :

    20px

    0

    15px

    ;
  471. }
  472. .step

    ,

    th {
  473. text-align

    :

    left

    ;
  474. padding

    :

    0

    ;
  475. }

  476. .submit

    input,

    .button

    ,

    .button-secondary

    {
  477. font-family

    :

    "Lucida Grande"

    ,

    Verdana,

    Arial,

    "Bitstream Vera Sans"

    ,

    sans-serif

    ;
  478. text-decoration

    :

    none

    ;
  479. font-size

    :

    14px

    !important;
  480. line-height

    :

    16px

    ;
  481. padding

    :

    6px

    12px

    ;
  482. cursor

    :

    pointer

    ;
  483. border

    :

    1px

    solid

    #bbb

    ;
  484. color

    :

    #464646

    ;
  485. -moz-border-radius:

    15px

    ;
  486. -khtml-border-radius:

    15px

    ;
  487. -webkit-border-radius:

    15px

    ;
  488. border-radius

    :

    15px

    ;
  489. -moz-box-sizing:

    content-box

    ;
  490. -webkit-box-sizing:

    content-box

    ;
  491. -khtml-box-sizing:

    content-box

    ;
  492. box-sizing

    :

    content-box

    ;
  493. }

  494. .button

    :

    hover

    ,

    .button-secondary

    :

    hover

    ,

    .submit

    input:

    hover

    {
  495. color

    :

    #000

    ;
  496. border-color

    :

    #666

    ;
  497. }

  498. .button

    ,

    .submit

    input,

    .button-secondary

    {
  499. background

    :

    #f2f2f2

    url

    (

    ../images/white-grad.png

    )

    repeat-x

    scroll

    left

    top

    ;
  500. }

  501. .button

    :

    active

    ,

    .submit

    input:

    active

    ,

    .button-secondary

    :

    active

    {
  502. background

    :

    #eee

    url

    (

    ../images/white-grad-active.png

    )

    repeat-x

    scroll

    left

    top

    ;
  503. }

  504. textarea {
  505. border

    :

    1px

    solid

    #bbb

    ;
  506. -moz-border-radius:

    4px

    ;
  507. -khtml-border-radius:

    4px

    ;
  508. -webkit-border-radius:

    4px

    ;
  509. border-radius

    :

    4px

    ;
  510. }

  511. .form-table

    {
  512. border-collapse

    :

    collapse

    ;
  513. margin-top

    :

    1em

    ;
  514. width

    :

    100%

    ;
  515. }

  516. .form-table

    td {
  517. margin-bottom

    :

    9px

    ;
  518. padding

    :

    10px

    ;
  519. border-bottom

    :

    8px

    solid

    #fff

    ;
  520. font-size

    :

    12px

    ;
  521. }

  522. .form-table

    th {
  523. font-size

    :

    13px

    ;
  524. text-align

    :

    left

    ;
  525. padding

    :

    16px

    10px

    10px

    10px

    ;
  526. border-bottom

    :

    8px

    solid

    #fff

    ;
  527. width

    :

    130px

    ;
  528. vertical-align

    :

    top

    ;
  529. }

  530. .form-table

    tr {
  531. background

    :

    #f3f3f3

    ;
  532. }

  533. .form-table

    code {
  534. line-height

    :

    18px

    ;
  535. font-size

    :

    18px

    ;
  536. }

  537. .form-table

    p {
  538. margin

    :

    4px

    0

    0

    0

    ;
  539. font-size

    :

    11px

    ;
  540. }

  541. .form-table

    input {
  542. line-height

    :

    20px

    ;
  543. font-size

    :

    15px

    ;
  544. padding

    :

    2px

    ;
  545. }

  546. .form-table

    th p {
  547. font-weight

    :

    normal

    ;
  548. }

  549. #error-page

    {
  550. margin-top

    :

    50px

    ;
  551. }

  552. #error-page

    p {
  553. font-size

    :

    12px

    ;
  554. line-height

    :

    18px

    ;
  555. margin

    :

    25px

    0

    20px

    ;
  556. }

  557. #error-page

    code,

    .code

    {
  558. font-family

    :

    Consolas,

    Monaco,

    Courier,

    monospace

    ;
  559. }

  560. #pass-strength-result

    {
  561. background-color

    :

    #eee

    ;
  562. border-color

    :

    #ddd

    !important;
  563. border-style

    :

    solid

    ;
  564. border-width

    :

    1px

    ;
  565. margin

    :

    5px

    5px

    5px

    1px

    ;
  566. padding

    :

    5px

    ;
  567. text-align

    :

    center

    ;
  568. width

    :

    200px

    ;
  569. display

    :

    none

    ;
  570. }

  571. #pass-strength-result

    .bad

    {
  572. background-color

    :

    #ffb78c

    ;
  573. border-color

    :

    #ff853c

    !important;
  574. }

  575. #pass-strength-result

    .good

    {
  576. background-color

    :

    #ffec8b

    ;
  577. border-color

    :

    #ffcc00

    !important;
  578. }

  579. #pass-strength-result

    .short

    {
  580. background-color

    :

    #ffa0a0

    ;
  581. border-color

    :

    #f04040

    !important;
  582. }

  583. #pass-strength-result

    .strong

    {
  584. background-color

    :

    #c3ff88

    ;
  585. border-color

    :

    #8dff1c

    !important;
  586. }

  587. .message

    {
  588. border

    :

    1px

    solid

    #e6db55

    ;
  589. padding

    :

    0.3em

    0.6em

    ;
  590. margin

    :

    5px

    0

    15px

    ;
  591. background-color

    :

    #ffffe0

    ;
  592. }
  593. label.error

    {

    float

    :

    none

    ;

    color

    :

    red

    ;

    padding-left

    :

    .5em

    ;

    vertical-align

    :

    top

    ;

    }

  594. button.close

    {
  595. padding

    :

    0

    ;
  596. cursor

    :

    pointer

    ;
  597. background

    :

    transparent

    ;
  598. border

    :

    0

    ;
  599. -webkit-appearance:

    none

    ;
  600. }
  601. .btn

    {
  602. display

    :

    inline-block

    ;
  603. *

    display

    :

    inline

    ;
  604. /* IE7 inline-block hack */

  605. *

    zoom:

    1

    ;
  606. padding

    :

    4px

    12px

    ;
  607. margin-bottom

    :

    0

    ;
  608. font-size

    :

    14px

    ;
  609. line-height

    :

    20px

    ;
  610. text-align

    :

    center

    ;
  611. vertical-align

    :

    middle

    ;
  612. cursor

    :

    pointer

    ;
  613. color

    :

    #333333

    ;
  614. text-shadow

    :

    0

    1px

    1px

    rgba

    (

    255

    ,

    255

    ,

    255

    ,

    0.75

    )

    ;
  615. background-color

    :

    #f5f5f5

    ;
  616. background-image

    :

    -moz-linear-gradient(

    top

    ,

    #ffffff

    ,

    #e6e6e6

    )

    ;
  617. background-image

    :

    -webkit-gradient(

    linear,

    0

    0

    ,

    0

    100%

    ,

    from(

    #ffffff

    )

    ,

    to(

    #e6e6e6

    )

    )

    ;
  618. background-image

    :

    -webkit-linear-gradient(

    top

    ,

    #ffffff

    ,

    #e6e6e6

    )

    ;
  619. background-image

    :

    -o-linear-gradient(

    top

    ,

    #ffffff

    ,

    #e6e6e6

    )

    ;
  620. background-image

    :

    linear-gradient(

    to bottom

    ,

    #ffffff

    ,

    #e6e6e6

    )

    ;
  621. background-repeat

    :

    repeat-x

    ;
  622. filter

    :

    progid:

    DXImageTransform.Microsoft

    .gradient(

    startColorstr=

    '#ffffffff'

    ,

    endColorstr=

    '#ffe6e6e6'

    ,

    GradientType=

    0

    )

    ;
  623. border-color

    :

    #e6e6e6

    #e6e6e6

    #bfbfbf

    ;
  624. border-color

    :

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    0.1

    )

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    0.1

    )

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    0.25

    )

    ;
  625. *

    background-color

    :

    #e6e6e6

    ;
  626. /* Darken IE7 buttons by default so they stand out more given they won't have borders */

  627. filter

    :

    progid:

    DXImageTransform.Microsoft

    .gradient(

    enabled

    =

    false)

    ;
  628. border

    :

    1px

    solid

    #bbbbbb

    ;
  629. *

    border

    :

    0

    ;
  630. border-bottom-color

    :

    #a2a2a2

    ;
  631. -webkit-border-radius:

    4px

    ;
  632. -moz-border-radius:

    4px

    ;
  633. border-radius

    :

    4px

    ;
  634. *

    margin-left

    :

    .3em

    ;
  635. -webkit-box-shadow:

    inset

    0

    1px

    0

    rgba

    (

    255

    ,

    255

    ,

    255

    ,

    .2)

    ,

    0

    1px

    2px

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    .05)

    ;
  636. -moz-box-shadow:

    inset

    0

    1px

    0

    rgba

    (

    255

    ,

    255

    ,

    255

    ,

    .2)

    ,

    0

    1px

    2px

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    .05)

    ;
  637. box-shadow

    :

    inset

    0

    1px

    0

    rgba

    (

    255

    ,

    255

    ,

    255

    ,

    .2)

    ,

    0

    1px

    2px

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    .05)

    ;
  638. }
  639. .btn

    :

    hover

    ,
  640. .btn

    :

    active

    ,
  641. .btn

    .active,
  642. .btn

    .disabled,
  643. .btn[

    disabled

    ]

    {
  644. color

    :

    #333333

    ;
  645. background-color

    :

    #e6e6e6

    ;
  646. *

    background-color

    :

    #d9d9d9

    ;
  647. }
  648. .btn

    :

    active

    ,
  649. .btn

    .active

    {
  650. background-color

    :

    #cccccc

    \9

    ;
  651. }
  652. .btn

    :

    first-child

    {
  653. *

    margin-left

    :

    0

    ;
  654. }
  655. .btn

    :

    hover

    {
  656. color

    :

    #333333

    ;
  657. text-decoration

    :

    none

    ;
  658. background-position

    :

    0

    -15px

    ;
  659. -webkit-transition:

    background-position 0.1s

    linear;
  660. -moz-transition:

    background-position 0.1s

    linear;
  661. -o-transition:

    background-position 0.1s

    linear;
  662. transition

    :

    background-position 0.1s

    linear;
  663. }
  664. .btn

    :

    focus

    {
  665. outline

    :

    thin

    dotted

    #333

    ;
  666. outline

    :

    5px

    auto

    -webkit-focus-ring-color;
  667. outline-offset

    :

    -2px

    ;
  668. }
  669. .btn

    .active,
  670. .btn

    :

    active

    {
  671. background-image

    :

    none

    ;
  672. outline

    :

    0

    ;
  673. -webkit-box-shadow:

    inset

    0

    2px

    4px

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    .15)

    ,

    0

    1px

    2px

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    .05)

    ;
  674. -moz-box-shadow:

    inset

    0

    2px

    4px

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    .15)

    ,

    0

    1px

    2px

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    .05)

    ;
  675. box-shadow

    :

    inset

    0

    2px

    4px

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    .15)

    ,

    0

    1px

    2px

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    .05)

    ;
  676. }
  677. .btn

    .disabled,
  678. .btn[

    disabled

    ]

    {
  679. cursor

    :

    default

    ;
  680. background-image

    :

    none

    ;
  681. opacity

    :

    0.65

    ;
  682. filter

    :

    alpha(

    opacity=

    65

    )

    ;
  683. -webkit-box-shadow:

    none

    ;
  684. -moz-box-shadow:

    none

    ;
  685. box-shadow

    :

    none

    ;
  686. }
  687. .btn-large

    {
  688. padding

    :

    11px

    19px

    ;
  689. font-size

    :

    17.5px

    ;
  690. -webkit-border-radius:

    6px

    ;
  691. -moz-border-radius:

    6px

    ;
  692. border-radius

    :

    6px

    ;
  693. }
  694. .btn-large

    [

    class^=

    "icon-"

    ]

    ,
  695. .btn-large

    [

    class*=

    " icon-"

    ]

    {
  696. margin-top

    :

    4px

    ;
  697. }
  698. .btn-small

    {
  699. padding

    :

    2px

    10px

    ;
  700. font-size

    :

    11.9px

    ;
  701. -webkit-border-radius:

    3px

    ;
  702. -moz-border-radius:

    3px

    ;
  703. border-radius

    :

    3px

    ;
  704. }
  705. .btn-small

    [

    class^=

    "icon-"

    ]

    ,
  706. .btn-small

    [

    class*=

    " icon-"

    ]

    {
  707. margin-top

    :

    0

    ;
  708. }
  709. .btn-mini

    [

    class^=

    "icon-"

    ]

    ,
  710. .btn-mini

    [

    class*=

    " icon-"

    ]

    {
  711. margin-top

    :

    -1px

    ;
  712. }
  713. .btn-mini

    {
  714. padding

    :

    0

    6px

    ;
  715. font-size

    :

    10.5px

    ;
  716. -webkit-border-radius:

    3px

    ;
  717. -moz-border-radius:

    3px

    ;
  718. border-radius

    :

    3px

    ;
  719. }
  720. .btn-block

    {
  721. display

    :

    block

    ;
  722. width

    :

    100%

    ;
  723. padding-left

    :

    0

    ;
  724. padding-right

    :

    0

    ;
  725. -webkit-box-sizing:

    border-box

    ;
  726. -moz-box-sizing:

    border-box

    ;
  727. box-sizing

    :

    border-box

    ;
  728. }
  729. .btn-block

    +

    .btn-block

    {
  730. margin-top

    :

    5px

    ;
  731. }
  732. input[

    type=

    "submit"

    ]

    .btn-block,
  733. input[

    type=

    "reset"

    ]

    .btn-block,
  734. input[

    type=

    "button"

    ]

    .btn-block

    {
  735. width

    :

    100%

    ;
  736. }
  737. .btn-primary

    .active,
  738. .btn-warning

    .active,
  739. .btn-danger

    .active,
  740. .btn-success

    .active,
  741. .btn-info

    .active,
  742. .btn-inverse

    .active

    {
  743. color

    :

    rgba

    (

    255

    ,

    255

    ,

    255

    ,

    0.75

    )

    ;
  744. }
  745. .btn

    {
  746. border-color

    :

    #c5c5c5

    ;
  747. border-color

    :

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    0.15

    )

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    0.15

    )

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    0.25

    )

    ;
  748. }
  749. .btn-primary

    {
  750. color

    :

    #ffffff

    ;
  751. text-shadow

    :

    0

    -1px

    0

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    0.25

    )

    ;
  752. background-color

    :

    #006dcc

    ;
  753. background-image

    :

    -moz-linear-gradient(

    top

    ,

    #0088cc

    ,

    #0044cc

    )

    ;
  754. background-image

    :

    -webkit-gradient(

    linear,

    0

    0

    ,

    0

    100%

    ,

    from(

    #0088cc

    )

    ,

    to(

    #0044cc

    )

    )

    ;
  755. background-image

    :

    -webkit-linear-gradient(

    top

    ,

    #0088cc

    ,

    #0044cc

    )

    ;
  756. background-image

    :

    -o-linear-gradient(

    top

    ,

    #0088cc

    ,

    #0044cc

    )

    ;
  757. background-image

    :

    linear-gradient(

    to bottom

    ,

    #0088cc

    ,

    #0044cc

    )

    ;
  758. background-repeat

    :

    repeat-x

    ;
  759. filter

    :

    progid:

    DXImageTransform.Microsoft

    .gradient(

    startColorstr=

    '#ff0088cc'

    ,

    endColorstr=

    '#ff0044cc'

    ,

    GradientType=

    0

    )

    ;
  760. border-color

    :

    #0044cc

    #0044cc

    #002a80

    ;
  761. border-color

    :

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    0.1

    )

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    0.1

    )

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    0.25

    )

    ;
  762. *

    background-color

    :

    #0044cc

    ;
  763. /* Darken IE7 buttons by default so they stand out more given they won't have borders */

  764. filter

    :

    progid:

    DXImageTransform.Microsoft

    .gradient(

    enabled

    =

    false)

    ;
  765. }
  766. .btn-primary

    :

    hover

    ,
  767. .btn-primary

    :

    active

    ,
  768. .btn-primary

    .active,
  769. .btn-primary

    .disabled,
  770. .btn-primary[

    disabled

    ]

    {
  771. color

    :

    #ffffff

    ;
  772. background-color

    :

    #0044cc

    ;
  773. *

    background-color

    :

    #003bb3

    ;
  774. }
  775. .btn-primary

    :

    active

    ,
  776. .btn-primary

    .active

    {
  777. background-color

    :

    #003399

    \9

    ;
  778. }
  779. .btn-warning

    {
  780. color

    :

    #ffffff

    ;
  781. text-shadow

    :

    0

    -1px

    0

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    0.25

    )

    ;
  782. background-color

    :

    #faa732

    ;
  783. background-image

    :

    -moz-linear-gradient(

    top

    ,

    #fbb450

    ,

    #f89406

    )

    ;
  784. background-image

    :

    -webkit-gradient(

    linear,

    0

    0

    ,

    0

    100%

    ,

    from(

    #fbb450

    )

    ,

    to(

    #f89406

    )

    )

    ;
  785. background-image

    :

    -webkit-linear-gradient(

    top

    ,

    #fbb450

    ,

    #f89406

    )

    ;
  786. background-image

    :

    -o-linear-gradient(

    top

    ,

    #fbb450

    ,

    #f89406

    )

    ;
  787. background-image

    :

    linear-gradient(

    to bottom

    ,

    #fbb450

    ,

    #f89406

    )

    ;
  788. background-repeat

    :

    repeat-x

    ;
  789. filter

    :

    progid:

    DXImageTransform.Microsoft

    .gradient(

    startColorstr=

    '#fffbb450'

    ,

    endColorstr=

    '#fff89406'

    ,

    GradientType=

    0

    )

    ;
  790. border-color

    :

    #f89406

    #f89406

    #ad6704

    ;
  791. border-color

    :

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    0.1

    )

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    0.1

    )

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    0.25

    )

    ;
  792. *

    background-color

    :

    #f89406

    ;
  793. /* Darken IE7 buttons by default so they stand out more given they won't have borders */

  794. filter

    :

    progid:

    DXImageTransform.Microsoft

    .gradient(

    enabled

    =

    false)

    ;
  795. }
  796. .btn-warning

    :

    hover

    ,
  797. .btn-warning

    :

    active

    ,
  798. .btn-warning

    .active,
  799. .btn-warning

    .disabled,
  800. .btn-warning[

    disabled

    ]

    {
  801. color

    :

    #ffffff

    ;
  802. background-color

    :

    #f89406

    ;
  803. *

    background-color

    :

    #df8505

    ;
  804. }
  805. .btn-warning

    :

    active

    ,
  806. .btn-warning

    .active

    {
  807. background-color

    :

    #c67605

    \9

    ;
  808. }
  809. .btn-danger

    {
  810. color

    :

    #ffffff

    ;
  811. text-shadow

    :

    0

    -1px

    0

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    0.25

    )

    ;
  812. background-color

    :

    #da4f49

    ;
  813. background-image

    :

    -moz-linear-gradient(

    top

    ,

    #ee5f5b

    ,

    #bd362f

    )

    ;
  814. background-image

    :

    -webkit-gradient(

    linear,

    0

    0

    ,

    0

    100%

    ,

    from(

    #ee5f5b

    )

    ,

    to(

    #bd362f

    )

    )

    ;
  815. background-image

    :

    -webkit-linear-gradient(

    top

    ,

    #ee5f5b

    ,

    #bd362f

    )

    ;
  816. background-image

    :

    -o-linear-gradient(

    top

    ,

    #ee5f5b

    ,

    #bd362f

    )

    ;
  817. background-image

    :

    linear-gradient(

    to bottom

    ,

    #ee5f5b

    ,

    #bd362f

    )

    ;
  818. background-repeat

    :

    repeat-x

    ;
  819. filter

    :

    progid:

    DXImageTransform.Microsoft

    .gradient(

    startColorstr=

    '#ffee5f5b'

    ,

    endColorstr=

    '#ffbd362f'

    ,

    GradientType=

    0

    )

    ;
  820. border-color

    :

    #bd362f

    #bd362f

    #802420

    ;
  821. border-color

    :

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    0.1

    )

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    0.1

    )

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    0.25

    )

    ;
  822. *

    background-color

    :

    #bd362f

    ;
  823. /* Darken IE7 buttons by default so they stand out more given they won't have borders */

  824. filter

    :

    progid:

    DXImageTransform.Microsoft

    .gradient(

    enabled

    =

    false)

    ;
  825. }
  826. .btn-danger

    :

    hover

    ,
  827. .btn-danger

    :

    active

    ,
  828. .btn-danger

    .active,
  829. .btn-danger

    .disabled,
  830. .btn-danger[

    disabled

    ]

    {
  831. color

    :

    #ffffff

    ;
  832. background-color

    :

    #bd362f

    ;
  833. *

    background-color

    :

    #a9302a

    ;
  834. }
  835. .btn-danger

    :

    active

    ,
  836. .btn-danger

    .active

    {
  837. background-color

    :

    #942a25

    \9

    ;
  838. }
  839. .btn-success

    {
  840. color

    :

    #ffffff

    ;
  841. text-shadow

    :

    0

    -1px

    0

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    0.25

    )

    ;
  842. background-color

    :

    #5bb75b

    ;
  843. background-image

    :

    -moz-linear-gradient(

    top

    ,

    #62c462

    ,

    #51a351

    )

    ;
  844. background-image

    :

    -webkit-gradient(

    linear,

    0

    0

    ,

    0

    100%

    ,

    from(

    #62c462

    )

    ,

    to(

    #51a351

    )

    )

    ;
  845. background-image

    :

    -webkit-linear-gradient(

    top

    ,

    #62c462

    ,

    #51a351

    )

    ;
  846. background-image

    :

    -o-linear-gradient(

    top

    ,

    #62c462

    ,

    #51a351

    )

    ;
  847. background-image

    :

    linear-gradient(

    to bottom

    ,

    #62c462

    ,

    #51a351

    )

    ;
  848. background-repeat

    :

    repeat-x

    ;
  849. filter

    :

    progid:

    DXImageTransform.Microsoft

    .gradient(

    startColorstr=

    '#ff62c462'

    ,

    endColorstr=

    '#ff51a351'

    ,

    GradientType=

    0

    )

    ;
  850. border-color

    :

    #51a351

    #51a351

    #387038

    ;
  851. border-color

    :

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    0.1

    )

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    0.1

    )

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    0.25

    )

    ;
  852. *

    background-color

    :

    #51a351

    ;
  853. /* Darken IE7 buttons by default so they stand out more given they won't have borders */

  854. filter

    :

    progid:

    DXImageTransform.Microsoft

    .gradient(

    enabled

    =

    false)

    ;
  855. }
  856. .btn-success

    :

    hover

    ,
  857. .btn-success

    :

    active

    ,
  858. .btn-success

    .active,
  859. .btn-success

    .disabled,
  860. .btn-success[

    disabled

    ]

    {
  861. color

    :

    #ffffff

    ;
  862. background-color

    :

    #51a351

    ;
  863. *

    background-color

    :

    #499249

    ;
  864. }
  865. .btn-success

    :

    active

    ,
  866. .btn-success

    .active

    {
  867. background-color

    :

    #408140

    \9

    ;
  868. }
  869. .btn-info

    {
  870. color

    :

    #ffffff

    ;
  871. text-shadow

    :

    0

    -1px

    0

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    0.25

    )

    ;
  872. background-color

    :

    #49afcd

    ;
  873. background-image

    :

    -moz-linear-gradient(

    top

    ,

    #5bc0de

    ,

    #2f96b4

    )

    ;
  874. background-image

    :

    -webkit-gradient(

    linear,

    0

    0

    ,

    0

    100%

    ,

    from(

    #5bc0de

    )

    ,

    to(

    #2f96b4

    )

    )

    ;
  875. background-image

    :

    -webkit-linear-gradient(

    top

    ,

    #5bc0de

    ,

    #2f96b4

    )

    ;
  876. background-image

    :

    -o-linear-gradient(

    top

    ,

    #5bc0de

    ,

    #2f96b4

    )

    ;
  877. background-image

    :

    linear-gradient(

    to bottom

    ,

    #5bc0de

    ,

    #2f96b4

    )

    ;
  878. background-repeat

    :

    repeat-x

    ;
  879. filter

    :

    progid:

    DXImageTransform.Microsoft

    .gradient(

    startColorstr=

    '#ff5bc0de'

    ,

    endColorstr=

    '#ff2f96b4'

    ,

    GradientType=

    0

    )

    ;
  880. border-color

    :

    #2f96b4

    #2f96b4

    #1f6377

    ;
  881. border-color

    :

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    0.1

    )

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    0.1

    )

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    0.25

    )

    ;
  882. *

    background-color

    :

    #2f96b4

    ;
  883. /* Darken IE7 buttons by default so they stand out more given they won't have borders */

  884. filter

    :

    progid:

    DXImageTransform.Microsoft

    .gradient(

    enabled

    =

    false)

    ;
  885. }

  886. .btn-info

    :

    hover

    ,
  887. .btn-info

    :

    active

    ,
  888. .btn-info

    .active,
  889. .btn-info

    .disabled,
  890. .btn-info[

    disabled

    ]

    {
  891. color

    :

    #ffffff

    ;
  892. background-color

    :

    #2f96b4

    ;
  893. *

    background-color

    :

    #2a85a0

    ;
  894. }
  895. .btn-info

    :

    active

    ,
  896. .btn-info

    .active

    {
  897. background-color

    :

    #24748c

    \9

    ;
  898. }
  899. .btn-inverse

    {
  900. color

    :

    #ffffff

    ;
  901. text-shadow

    :

    0

    -1px

    0

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    0.25

    )

    ;
  902. background-color

    :

    #363636

    ;
  903. background-image

    :

    -moz-linear-gradient(

    top

    ,

    #444444

    ,

    #222222

    )

    ;
  904. background-image

    :

    -webkit-gradient(

    linear,

    0

    0

    ,

    0

    100%

    ,

    from(

    #444444

    )

    ,

    to(

    #222222

    )

    )

    ;
  905. background-image

    :

    -webkit-linear-gradient(

    top

    ,

    #444444

    ,

    #222222

    )

    ;
  906. background-image

    :

    -o-linear-gradient(

    top

    ,

    #444444

    ,

    #222222

    )

    ;
  907. background-image

    :

    linear-gradient(

    to bottom

    ,

    #444444

    ,

    #222222

    )

    ;
  908. background-repeat

    :

    repeat-x

    ;
  909. filter

    :

    progid:

    DXImageTransform.Microsoft

    .gradient(

    startColorstr=

    '#ff444444'

    ,

    endColorstr=

    '#ff222222'

    ,

    GradientType=

    0

    )

    ;
  910. border-color

    :

    #222222

    #222222

    #000000

    ;
  911. border-color

    :

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    0.1

    )

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    0.1

    )

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    0.25

    )

    ;
  912. *

    background-color

    :

    #222222

    ;
  913. /* Darken IE7 buttons by default so they stand out more given they won't have borders */

  914. filter

    :

    progid:

    DXImageTransform.Microsoft

    .gradient(

    enabled

    =

    false)

    ;
  915. }
  916. .btn-inverse

    :

    hover

    ,
  917. .btn-inverse

    :

    active

    ,
  918. .btn-inverse

    .active,
  919. .btn-inverse

    .disabled,
  920. .btn-inverse[

    disabled

    ]

    {
  921. color

    :

    #ffffff

    ;
  922. background-color

    :

    #222222

    ;
  923. *

    background-color

    :

    #151515

    ;
  924. }
  925. .btn-inverse

    :

    active

    ,
  926. .btn-inverse

    .active

    {
  927. background-color

    :

    #080808

    \9

    ;
  928. }

  929. button.btn,
  930. input[

    type=

    "submit"

    ]

    .btn

    {
  931. *

    padding-top

    :

    3px

    ;
  932. *

    padding-bottom

    :

    3px

    ;
  933. }
  934. button.btn

    ::

    -moz-focus-inner,
  935. input[

    type=

    "submit"

    ]

    .btn

    ::

    -moz-focus-inner {
  936. padding

    :

    0

    ;
  937. border

    :

    0

    ;
  938. }
  939. button.btn

    .btn-large,
  940. input[

    type=

    "submit"

    ]

    .btn

    .btn-large

    {
  941. *

    padding-top

    :

    7px

    ;
  942. *

    padding-bottom

    :

    7px

    ;
  943. }
  944. button.btn

    .btn-small,
  945. input[

    type=

    "submit"

    ]

    .btn

    .btn-small

    {
  946. *

    padding-top

    :

    3px

    ;
  947. *

    padding-bottom

    :

    3px

    ;
  948. }
  949. button.btn

    .btn-mini,
  950. input[

    type=

    "submit"

    ]

    .btn

    .btn-mini

    {
  951. *

    padding-top

    :

    1px

    ;
  952. *

    padding-bottom

    :

    1px

    ;
  953. }
  954. .btn-link,
  955. .btn-link

    :

    active

    ,
  956. .btn-link[

    disabled

    ]

    {
  957. background-color

    :

    transparent

    ;
  958. background-image

    :

    none

    ;
  959. -webkit-box-shadow:

    none

    ;
  960. -moz-box-shadow:

    none

    ;
  961. box-shadow

    :

    none

    ;
  962. }
  963. .btn-link

    {
  964. border-color

    :

    transparent

    ;
  965. cursor

    :

    pointer

    ;
  966. color

    :

    #0088cc

    ;
  967. -webkit-border-radius:

    0

    ;
  968. -moz-border-radius:

    0

    ;
  969. border-radius

    :

    0

    ;
  970. }
  971. .btn-link

    :

    hover

    {
  972. color

    :

    #005580

    ;
  973. text-decoration

    :

    underline

    ;
  974. background-color

    :

    transparent

    ;
  975. }
  976. .btn-link[

    disabled

    ]

    :

    hover

    {
  977. color

    :

    #333333

    ;
  978. text-decoration

    :

    none

    ;
  979. }
  980. .btn-group

    {
  981. position

    :

    relative

    ;
  982. display

    :

    inline-block

    ;
  983. *

    display

    :

    inline

    ;
  984. /* IE7 inline-block hack */

  985. *

    zoom:

    1

    ;
  986. font-size

    :

    0

    ;
  987. vertical-align

    :

    middle

    ;
  988. white-space

    :

    nowrap

    ;
  989. *

    margin-left

    :

    .3em

    ;
  990. }
  991. .btn-group

    :

    first-child

    {
  992. *

    margin-left

    :

    0

    ;
  993. }
  994. .btn-group

    +

    .btn-group

    {
  995. margin-left

    :

    5px

    ;
  996. }
  997. .btn-toolbar

    {
  998. font-size

    :

    0

    ;
  999. margin-top

    :

    10px

    ;
  1000. margin-bottom

    :

    10px

    ;
  1001. }
  1002. .btn-toolbar

    >

    .btn

    +

    .btn,
  1003. .btn-toolbar

    >

    .btn-group

    +

    .btn,
  1004. .btn-toolbar

    >

    .btn

    +

    .btn-group

    {
  1005. margin-left

    :

    5px

    ;
  1006. }
  1007. .btn-group

    >

    .btn

    {
  1008. position

    :

    relative

    ;
  1009. -webkit-border-radius:

    0

    ;
  1010. -moz-border-radius:

    0

    ;
  1011. border-radius

    :

    0

    ;
  1012. }
  1013. .btn-group

    >

    .btn

    +

    .btn

    {
  1014. margin-left

    :

    -1px

    ;
  1015. }
  1016. .btn-group

    >

    .btn,
  1017. .btn-group

    >

    .dropdown-menu,
  1018. .btn-group

    >

    .popover

    {
  1019. font-size

    :

    14px

    ;
  1020. }
  1021. .btn-group

    >

    .btn-mini

    {
  1022. font-size

    :

    10.5px

    ;
  1023. }
  1024. .btn-group

    >

    .btn-small

    {
  1025. font-size

    :

    11.9px

    ;
  1026. }
  1027. .btn-group

    >

    .btn-large

    {
  1028. font-size

    :

    17.5px

    ;
  1029. }
  1030. .btn-group

    >

    .btn

    :

    first-child

    {
  1031. margin-left

    :

    0

    ;
  1032. -webkit-border-top-left-radius:

    4px

    ;
  1033. -moz-border-radius-topleft:

    4px

    ;
  1034. border-top-left-radius

    :

    4px

    ;
  1035. -webkit-border-bottom-left-radius:

    4px

    ;
  1036. -moz-border-radius-bottomleft:

    4px

    ;
  1037. border-bottom-left-radius

    :

    4px

    ;
  1038. }
  1039. .btn-group

    >

    .btn

    :

    last-child

    ,
  1040. .btn-group

    >

    .dropdown-toggle

    {
  1041. -webkit-border-top-right-radius:

    4px

    ;
  1042. -moz-border-radius-topright:

    4px

    ;
  1043. border-top-right-radius

    :

    4px

    ;
  1044. -webkit-border-bottom-right-radius:

    4px

    ;
  1045. -moz-border-radius-bottomright:

    4px

    ;
  1046. border-bottom-right-radius

    :

    4px

    ;
  1047. }
  1048. .btn-group

    >

    .btn

    .large

    :

    first-child

    {
  1049. margin-left

    :

    0

    ;
  1050. -webkit-border-top-left-radius:

    6px

    ;
  1051. -moz-border-radius-topleft:

    6px

    ;
  1052. border-top-left-radius

    :

    6px

    ;
  1053. -webkit-border-bottom-left-radius:

    6px

    ;
  1054. -moz-border-radius-bottomleft:

    6px

    ;
  1055. border-bottom-left-radius

    :

    6px

    ;
  1056. }
  1057. .btn-group

    >

    .btn

    .large

    :

    last-child

    ,
  1058. .btn-group

    >

    .large

    .dropdown-toggle

    {
  1059. -webkit-border-top-right-radius:

    6px

    ;
  1060. -moz-border-radius-topright:

    6px

    ;
  1061. border-top-right-radius

    :

    6px

    ;
  1062. -webkit-border-bottom-right-radius:

    6px

    ;
  1063. -moz-border-radius-bottomright:

    6px

    ;
  1064. border-bottom-right-radius

    :

    6px

    ;
  1065. }
  1066. .btn-group

    >

    .btn

    :

    hover

    ,
  1067. .btn-group

    >

    .btn

    :

    focus

    ,
  1068. .btn-group

    >

    .btn

    :

    active

    ,
  1069. .btn-group

    >

    .btn

    .active

    {
  1070. z-index

    :

    2

    ;
  1071. }
  1072. .btn-group

    .dropdown-toggle

    :

    active

    ,
  1073. .btn-group

    .open

    .dropdown-toggle

    {
  1074. outline

    :

    0

    ;
  1075. }
  1076. .btn-group

    >

    .btn

    +

    .dropdown-toggle

    {
  1077. padding-left

    :

    8px

    ;
  1078. padding-right

    :

    8px

    ;
  1079. -webkit-box-shadow:

    inset

    1px

    0

    0

    rgba

    (

    255

    ,

    255

    ,

    255

    ,

    .125)

    ,

    inset

    0

    1px

    0

    rgba

    (

    255

    ,

    255

    ,

    255

    ,

    .2)

    ,

    0

    1px

    2px

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    .05)

    ;
  1080. -moz-box-shadow:

    inset

    1px

    0

    0

    rgba

    (

    255

    ,

    255

    ,

    255

    ,

    .125)

    ,

    inset

    0

    1px

    0

    rgba

    (

    255

    ,

    255

    ,

    255

    ,

    .2)

    ,

    0

    1px

    2px

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    .05)

    ;
  1081. box-shadow

    :

    inset

    1px

    0

    0

    rgba

    (

    255

    ,

    255

    ,

    255

    ,

    .125)

    ,

    inset

    0

    1px

    0

    rgba

    (

    255

    ,

    255

    ,

    255

    ,

    .2)

    ,

    0

    1px

    2px

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    .05)

    ;
  1082. *

    padding-top

    :

    5px

    ;
  1083. *

    padding-bottom

    :

    5px

    ;
  1084. }
  1085. .btn-group

    >

    .btn-mini

    +

    .dropdown-toggle

    {
  1086. padding-left

    :

    5px

    ;
  1087. padding-right

    :

    5px

    ;
  1088. *

    padding-top

    :

    2px

    ;
  1089. *

    padding-bottom

    :

    2px

    ;
  1090. }
  1091. .btn-group

    >

    .btn-small

    +

    .dropdown-toggle

    {
  1092. *

    padding-top

    :

    5px

    ;
  1093. *

    padding-bottom

    :

    4px

    ;
  1094. }
  1095. .btn-group

    >

    .btn-large

    +

    .dropdown-toggle

    {
  1096. padding-left

    :

    12px

    ;
  1097. padding-right

    :

    12px

    ;
  1098. *

    padding-top

    :

    7px

    ;
  1099. *

    padding-bottom

    :

    7px

    ;
  1100. }
  1101. .btn-group

    .open

    .dropdown-toggle

    {
  1102. background-image

    :

    none

    ;
  1103. -webkit-box-shadow:

    inset

    0

    2px

    4px

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    .15)

    ,

    0

    1px

    2px

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    .05)

    ;
  1104. -moz-box-shadow:

    inset

    0

    2px

    4px

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    .15)

    ,

    0

    1px

    2px

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    .05)

    ;
  1105. box-shadow

    :

    inset

    0

    2px

    4px

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    .15)

    ,

    0

    1px

    2px

    rgba

    (

    0

    ,

    0

    ,

    0

    ,

    .05)

    ;
  1106. }
  1107. .btn-group

    .open

    .btn

    .dropdown-toggle

    {
  1108. background-color

    :

    #e6e6e6

    ;
  1109. }
  1110. .btn-group

    .open

    .btn-primary

    .dropdown-toggle

    {
  1111. background-color

    :

    #0044cc

    ;
  1112. }
  1113. .btn-group

    .open

    .btn-warning

    .dropdown-toggle

    {
  1114. background-color

    :

    #f89406

    ;
  1115. }
  1116. .btn-group

    .open

    .btn-danger

    .dropdown-toggle

    {
  1117. background-color

    :

    #bd362f

    ;
  1118. }
  1119. .btn-group

    .open

    .btn-success

    .dropdown-toggle

    {
  1120. background-color

    :

    #51a351

    ;
  1121. }
  1122. .btn-group

    .open

    .btn-info

    .dropdown-toggle

    {
  1123. background-color

    :

    #2f96b4

    ;
  1124. }
  1125. .btn-group

    .open

    .btn-inverse

    .dropdown-toggle

    {
  1126. background-color

    :

    #222222

    ;
  1127. }
  1128. .btn

    .caret

    {
  1129. margin-top

    :

    8px

    ;
  1130. margin-left

    :

    0

    ;
  1131. }
  1132. .btn-mini

    .caret,
  1133. .btn-small

    .caret,
  1134. .btn-large

    .caret

    {
  1135. margin-top

    :

    6px

    ;
  1136. }
  1137. .btn-large

    .caret

    {
  1138. border-left-width

    :

    5px

    ;
  1139. border-right-width

    :

    5px

    ;
  1140. border-top-width

    :

    5px

    ;
  1141. }
  1142. .dropup

    .btn-large

    .caret

    {
  1143. border-bottom-width

    :

    5px

    ;
  1144. }
  1145. .btn-primary

    .caret,
  1146. .btn-warning

    .caret,
  1147. .btn-danger

    .caret,
  1148. .btn-info

    .caret,
  1149. .btn-success

    .caret,
  1150. .btn-inverse

    .caret

    {
  1151. border-top-color

    :

    #ffffff

    ;
  1152. border-bottom-color

    :

    #ffffff

    ;
  1153. }
  1154. .btn-group-vertical

    {
  1155. display

    :

    inline-block

    ;
  1156. *

    display

    :

    inline

    ;
  1157. /* IE7 inline-block hack */

  1158. *

    zoom:

    1

    ;
  1159. }
  1160. .btn-group-vertical

    >

    .btn

    {
  1161. display

    :

    block

    ;
  1162. float

    :

    none

    ;
  1163. max-width

    :

    100%

    ;
  1164. -webkit-border-radius:

    0

    ;
  1165. -moz-border-radius:

    0

    ;
  1166. border-radius

    :

    0

    ;
  1167. }
  1168. .btn-group-vertical

    >

    .btn

    +

    .btn

    {
  1169. margin-left

    :

    0

    ;
  1170. margin-top

    :

    -1px

    ;
  1171. }
  1172. .btn-group-vertical

    >

    .btn

    :

    first-child

    {
  1173. -webkit-border-radius:

    4px

    4px

    0

    0

    ;
  1174. -moz-border-radius:

    4px

    4px

    0

    0

    ;
  1175. border-radius

    :

    4px

    4px

    0

    0

    ;
  1176. }
  1177. .btn-group-vertical

    >

    .btn

    :

    last-child

    {
  1178. -webkit-border-radius:

    0

    0

    4px

    4px

    ;
  1179. -moz-border-radius:

    0

    0

    4px

    4px

    ;
  1180. border-radius

    :

    0

    0

    4px

    4px

    ;
  1181. }
  1182. .btn-group-vertical

    >

    .btn-large

    :

    first-child

    {
  1183. -webkit-border-radius:

    6px

    6px

    0

    0

    ;
  1184. -moz-border-radius:

    6px

    6px

    0

    0

    ;
  1185. border-radius

    :

    6px

    6px

    0

    0

    ;
  1186. }
  1187. .btn-group-vertical

    >

    .btn-large

    :

    last-child

    {
  1188. -webkit-border-radius:

    0

    0

    6px

    6px

    ;
  1189. -moz-border-radius:

    0

    0

    6px

    6px

    ;
  1190. border-radius

    :

    0

    0

    6px

    6px

    ;
  1191. }

Creating our class_of_ac.js

  1. <

    script type=

    "text/javascript"

    >
  2. var

    aircode_up =

    [
  3. '\u

    030d'

    ,

    /* ? */

    '\u

    030e'

    ,

    /* ? */

    '\u

    0304'

    ,

    /* ? */

    '\u

    0305'

    ,

    /* ? */
  4. '\u

    033f'

    ,

    /* ? */

    '\u

    0311'

    ,

    /* ? */

    '\u

    0306'

    ,

    /* ? */

    '\u

    0310'

    ,

    /* ? */
  5. '\u

    0352'

    ,

    /* ? */

    '\u

    0357'

    ,

    /* ? */

    '\u

    0351'

    ,

    /* ? */

    '\u

    0307'

    ,

    /* ? */
  6. '\u

    0308'

    ,

    /* ? */

    '\u

    030a'

    ,

    /* ? */

    '\u

    0342'

    ,

    /* ? */

    '\u

    0343'

    ,

    /* ? */
  7. '\u

    0344'

    ,

    /* ? */

    '\u

    034a'

    ,

    /* ? */

    '\u

    034b'

    ,

    /* ? */

    '\u

    034c'

    ,

    /* ? */
  8. '\u

    0303'

    ,

    /* Þ */

    '\u

    0302'

    ,

    /* ? */

    '\u

    030c'

    ,

    /* ? */

    '\u

    0350'

    ,

    /* ? */
  9. '\u

    0300'

    ,

    /* Ì */

    '\u

    0301'

    ,

    /* ì */

    '\u

    030b'

    ,

    /* ? */

    '\u

    030f'

    ,

    /* ? */
  10. '\u

    0312'

    ,

    /* ? */

    '\u

    0313'

    ,

    /* ? */

    '\u

    0314'

    ,

    /* ? */

    '\u

    033d'

    ,

    /* ? */
  11. '\u

    0309'

    ,

    /* Ò */

    '\u

    0363'

    ,

    /* ? */

    '\u

    0364'

    ,

    /* ? */

    '\u

    0365'

    ,

    /* ? */
  12. '\u

    0366'

    ,

    /* ? */

    '\u

    0367'

    ,

    /* ? */

    '\u

    0368'

    ,

    /* ? */

    '\u

    0369'

    ,

    /* ? */
  13. '\u

    036a'

    ,

    /* ? */

    '\u

    036b'

    ,

    /* ? */

    '\u

    036c'

    ,

    /* ? */

    '\u

    036d'

    ,

    /* ? */
  14. '\u

    036e'

    ,

    /* ? */

    '\u

    036f'

    ,

    /* ? */

    '\u

    033e'

    ,

    /* ? */

    '\u

    035b'

    ,

    /* ? */
  15. '\u

    0346'

    ,

    /* ? */

    '\u

    031a'

    /* ? */
  16. ]

    ;

  17. //those go DOWN
  18. var

    aircode_down =

    [
  19. '\u

    0316'

    ,

    /* ? */

    '\u

    0317'

    ,

    /* ? */

    '\u

    0318'

    ,

    /* ? */

    '\u

    0319'

    ,

    /* ? */
  20. '\u

    031c'

    ,

    /* ? */

    '\u

    031d'

    ,

    /* ? */

    '\u

    031e'

    ,

    /* ? */

    '\u

    031f'

    ,

    /* ? */
  21. '\u

    0320'

    ,

    /* ? */

    '\u

    0324'

    ,

    /* ? */

    '\u

    0325'

    ,

    /* ? */

    '\u

    0326'

    ,

    /* ? */
  22. '\u

    0329'

    ,

    /* ? */

    '\u

    032a'

    ,

    /* ? */

    '\u

    032b'

    ,

    /* ? */

    '\u

    032c'

    ,

    /* ? */
  23. '\u

    032d'

    ,

    /* ? */

    '\u

    032e'

    ,

    /* ? */

    '\u

    032f'

    ,

    /* ? */

    '\u

    0330'

    ,

    /* ? */
  24. '\u

    0331'

    ,

    /* ? */

    '\u

    0332'

    ,

    /* ? */

    '\u

    0333'

    ,

    /* ? */

    '\u

    0339'

    ,

    /* ? */
  25. '\u

    033a'

    ,

    /* ? */

    '\u

    033b'

    ,

    /* ? */

    '\u

    033c'

    ,

    /* ? */

    '\u

    0345'

    ,

    /* ? */
  26. '\u

    0347'

    ,

    /* ? */

    '\u

    0348'

    ,

    /* ? */

    '\u

    0349'

    ,

    /* ? */

    '\u

    034d'

    ,

    /* ? */
  27. '\u

    034e'

    ,

    /* ? */

    '\u

    0353'

    ,

    /* ? */

    '\u

    0354'

    ,

    /* ? */

    '\u

    0355'

    ,

    /* ? */
  28. '\u

    0356'

    ,

    /* ? */

    '\u

    0359'

    ,

    /* ? */

    '\u

    035a'

    ,

    /* ? */

    '\u

    0323'

    /* ò */
  29. ]

    ;

  30. //those always stay in the middle
  31. var

    aircode_mid =

    [
  32. '\u

    0315'

    ,

    /* ? */

    '\u

    031b'

    ,

    /* ? */

    '\u

    0340'

    ,

    /* ? */

    '\u

    0341'

    ,

    /* ? */
  33. '\u

    0358'

    ,

    /* ? */

    '\u

    0321'

    ,

    /* ? */

    '\u

    0322'

    ,

    /* ? */

    '\u

    0327'

    ,

    /* ? */
  34. '\u

    0328'

    ,

    /* ? */

    '\u

    0334'

    ,

    /* ? */

    '\u

    0335'

    ,

    /* ? */

    '\u

    0336'

    ,

    /* ? */
  35. '\u

    034f'

    ,

    /* ? */

    '\u

    035c'

    ,

    /* ? */

    '\u

    035d'

    ,

    /* ? */

    '\u

    035e'

    ,

    /* ? */
  36. '\u

    035f'

    ,

    /* ? */

    '\u

    0360'

    ,

    /* ? */

    '\u

    0362'

    ,

    /* ? */

    '\u

    0338'

    ,

    /* ? */
  37. '\u

    0337'

    ,

    /* ? */

    '\u

    0361'

    ,

    /* ? */

    '\u

    0489'

    /* ?_ */
  38. ]

    ;

  39. // random function
  40. //---------------------------------------------------

  41. //gets an int between 0 and max
  42. function

    rand(

    max)
  43. {
  44. return

    Math

    .floor

    (

    Math

    .random

    (

    )

    *

    max)

    ;
  45. }

  46. //gets a random char from a AC char table
  47. function

    rand_ac(

    array)
  48. {
  49. var

    ind =

    Math

    .floor

    (

    Math

    .random

    (

    )

    *

    array.length

    )

    ;
  50. return

    array[

    ind]

    ;
  51. }

  52. // utils funcs
  53. //---------------------------------------------------

  54. //hide show element
  55. function

    toggle(

    id)
  56. {
  57. if

    (

    document.getElementById

    (

    id)

    .style

    .display

    ==

    "none"

    )
  58. document.getElementById

    (

    id)

    .style

    .display

    =

    "block"

    ;
  59. else
  60. document.getElementById

    (

    id)

    .style

    .display

    =

    "none"

    ;
  61. }

  62. //lookup char to know if its a zalgo char or not
  63. function

    is_ac_char(

    c)
  64. {
  65. var

    i;
  66. for

    (

    i=

    0

    ;

    i<

    aircode_up.length

    ;

    i++

    )
  67. if

    (

    c ==

    aircode_up[

    i]

    )
  68. return

    true

    ;
  69. for

    (

    i=

    0

    ;

    i<

    aircode_down.length

    ;

    i++

    )
  70. if

    (

    c ==

    aircode_down[

    i]

    )
  71. return

    true

    ;
  72. for

    (

    i=

    0

    ;

    i<

    aircode_mid.length

    ;

    i++

    )
  73. if

    (

    c ==

    aircode_mid[

    i]

    )
  74. return

    true

    ;
  75. return

    false

    ;
  76. }

  77. function

    draw_ac_table(

    elid)
  78. {
  79. var

    container =

    document.getElementById

    (

    elid)

    ;
  80. var

    html =

    ''

    ;

  81. html +=

    '<b>Chars going up:</b><br />\n

    '

    ;
  82. html +=

    '<table class="ac_xamp_ref_table">\n

    '

    ;
  83. html +=

    '<tr>\n

    '

    ;
  84. for

    (

    var

    i=

    0

    ;

    i<

    aircode_up.length

    ;

    i++

    )
  85. {
  86. if

    (

    !

    (

    i %

    10

    )

    )
  87. html +=

    '</tr><tr>'

    ;
  88. html +=

    '<td class="ac_xamp_td">'

    +

    aircode_up[

    i]

    +

    '</td>\n

    '

    ;
  89. }
  90. html +=

    '</tr>\n

    '

    ;
  91. html +=

    '</table>\n

    '

    ;

  92. html +=

    '<br /><b>Chars staying in the middle:</b><br />\n

    '

    ;
  93. html +=

    '<table class="ac_xamp_ref_table">\n

    '

    ;
  94. html +=

    '<tr>\n

    '

    ;
  95. for

    (

    var

    i=

    0

    ;

    i<

    aircode_mid.length

    ;

    i++

    )
  96. {
  97. if

    (

    !

    (

    i %

    10

    )

    )
  98. html +=

    '</tr><tr>'

    ;
  99. html +=

    '<td class="ac_xamp_td">'

    +

    aircode_mid[

    i]

    +

    '</td>\n

    '

    ;
  100. }
  101. html +=

    '</tr>\n

    '

    ;
  102. html +=

    '</table>\n

    '

    ;

  103. html +=

    '<br /><b>Chars going down:</b><br />\n

    '

    ;
  104. html +=

    '<table class="ac_xamp_ref_table">\n

    '

    ;
  105. html +=

    '<tr>\n

    '

    ;
  106. for

    (

    var

    i=

    0

    ;

    i<

    aircode_down.length

    ;

    i++

    )
  107. {
  108. if

    (

    !

    (

    i %

    10

    )

    )
  109. html +=

    '</tr><tr>'

    ;
  110. html +=

    '<td class="ac_xamp_td">'

    +

    aircode_down[

    i]

    +

    '</td>\n

    '

    ;
  111. }
  112. html +=

    '</tr>\n

    '

    ;
  113. html +=

    '</table>\n

    '

    ;

  114. container.innerHTML

    =

    html;
  115. }

  116. // main shit
  117. //---------------------------------------------------
  118. function

    xamp_textarea(

    id)
  119. {
  120. var

    p =

    document.getElementById

    (

    id)

    ;
  121. var

    txt =

    p.value

    ;
  122. var

    newtxt =

    ''

    ;
  123. for

    (

    var

    i=

    0

    ;

    i<

    txt.length

    ;

    i++

    )
  124. {
  125. if

    (

    is_ac_char(

    txt.substr

    (

    i,

    1

    )

    )

    )
  126. continue

    ;

  127. var

    num_up;
  128. var

    num_mid;
  129. var

    num_down;

  130. //add the normal character
  131. newtxt +=

    txt.substr

    (

    i,

    1

    )

    ;

  132. //options
  133. if

    (

    document.getElementById

    (

    'ac_opt_mini'

    )

    .checked

    )
  134. {
  135. num_up =

    rand(

    8

    )

    ;
  136. num_mid =

    rand(

    2

    )

    ;
  137. num_down =

    rand(

    8

    )

    ;
  138. }
  139. else

    if

    (

    document.getElementById

    (

    'ac_opt_normal'

    )

    .checked

    )
  140. {
  141. num_up =

    rand(

    16

    )

    /

    2

    +

    1

    ;
  142. num_mid =

    rand(

    6

    )

    /

    2

    ;
  143. num_down =

    rand(

    16

    )

    /

    2

    +

    1

    ;
  144. }
  145. else

    //maxi
  146. {
  147. num_up =

    rand(

    64

    )

    /

    4

    +

    3

    ;
  148. num_mid =

    rand(

    16

    )

    /

    4

    +

    1

    ;
  149. num_down =

    rand(

    64

    )

    /

    4

    +

    3

    ;
  150. }


  151. if

    (

    document.getElementById

    (

    'ac_opt_up'

    )

    .checked

    )
  152. for

    (

    var

    j=

    0

    ;

    j<

    num_up;

    j++

    )
  153. newtxt +=

    rand_ac(

    aircode_up)

    ;
  154. if

    (

    document.getElementById

    (

    'ac_opt_mid'

    )

    .checked

    )
  155. for

    (

    var

    j=

    0

    ;

    j<

    num_mid;

    j++

    )
  156. newtxt +=

    rand_ac(

    aircode_mid)

    ;
  157. if

    (

    document.getElementById

    (

    'ac_opt_down'

    )

    .checked

    )
  158. for

    (

    var

    j=

    0

    ;

    j<

    num_down;

    j++

    )
  159. newtxt +=

    rand_ac(

    aircode_down)

    ;
  160. }

  161. //result is in nextxt, display that

  162. //remove all children of lulz_container
  163. var

    container =

    document.getElementById

    (

    'lulz_container'

    )

    ;
  164. while(

    container.childNodes

    .length

    )
  165. container.removeChild

    (

    container.childNodes

    [

    0

    ]

    )

    ;

  166. //build blocks for each line & create a <br />
  167. var

    lines =

    newtxt.split

    (

    "\n

    "

    )

    ;
  168. for

    (

    var

    i=

    0

    ;

    i<

    lines.length

    ;

    i++

    )
  169. {
  170. var

    n =

    document.createElement

    (

    'text'

    )

    ;
  171. n.innerHTML

    =

    lines[

    i]

    ;
  172. container.appendChild

    (

    n)

    ;
  173. var

    nl =

    document.createElement

    (

    'br'

    )

    ;
  174. container.appendChild

    (

    nl)

    ;
  175. }

  176. //done
  177. }
  178. /* ]]> */
  179. </

    script>

Congratulations, you have created an air code generator. If you have questions and suggestions feel free to comment below or email me at [email protected]

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:

1. Re-scan downloaded files using your personal virus checker before using it.

2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

 

438,622

315,778

315,787

Top