• 1399/03/29

عیب یابی سورس لاگین :

سلام من دوره جاوا اسکریپت رو تازه شروع کردم  این کد رو برای تمرین نوشتم 

که نام کاربری و رمز رو میگیره اگه یوزر وجود داشت برسی می کنه رمز ورودی با پسورد یکی هست یا نه 

و اگر یوزر وجود نداشت نات فوند رو الرت می کنه و مشکل اینجاست که فقط هر کاری می کنم نات فوند الرت میشه چه اطلاعات درست باشه چه نه 

اینم کد 

<span class="hljs-doctype" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"><!DOCTYPE html></span>
<span class="hljs-tag" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"><<span class="hljs-title" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">html</span> <span class="hljs-attribute" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">lang</span>=<span class="hljs-value" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">"en"</span>></span>
  <span class="hljs-tag" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"><<span class="hljs-title" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">head</span>></span>
    <span class="hljs-tag" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"><<span class="hljs-title" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">meta</span> <span class="hljs-attribute" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">charset</span>=<span class="hljs-value" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">"UTF-8"</span>></span>
    <span class="hljs-tag" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"><<span class="hljs-title" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">meta</span> <span class="hljs-attribute" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">name</span>=<span class="hljs-value" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">"viewport"</span> <span class="hljs-attribute" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">content</span>=<span class="hljs-value" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">"width=device-width, initial-scale=1.0"</span>></span>
    <span class="hljs-tag" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"><<span class="hljs-title" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">meta</span> <span class="hljs-attribute" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">http-equiv</span>=<span class="hljs-value" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">"X-UA-Compatible"</span> <span class="hljs-attribute" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">content</span>=<span class="hljs-value" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">"ie=edge"</span>></span>
    <span class="hljs-tag" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"><<span class="hljs-title" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">title</span>></span>Document<span class="hljs-tag" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"></<span class="hljs-title" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">title</span>></span>
    <span class="hljs-tag" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"><<span class="hljs-title" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">style</span> <span class="hljs-attribute" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">media</span>=<span class="hljs-value" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">"screen"</span>></span><span class="css" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;opacity:0.5;padding-bottom:5px;">
      <span class="hljs-class" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">.box</span><span class="hljs-rules" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">{
        <span class="hljs-rule" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"><span class="hljs-attribute" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">width</span>:<span class="hljs-value" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"> <span class="hljs-number" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">200</span>px</span></span>;
        <span class="hljs-rule" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"><span class="hljs-attribute" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">height</span>:<span class="hljs-value" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"> <span class="hljs-number" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">250</span>px</span></span>;
        <span class="hljs-rule" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"><span class="hljs-attribute" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">border</span>:<span class="hljs-value" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"> <span class="hljs-number" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">1</span>px solid <span class="hljs-hexcolor" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">#000</span></span></span>;
        <span class="hljs-rule" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"><span class="hljs-attribute" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">border-radius</span>:<span class="hljs-value" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"> <span class="hljs-number" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">5</span>px</span></span>;
        <span class="hljs-rule" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"><span class="hljs-attribute" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">margin</span>:<span class="hljs-value" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"><span class="hljs-number" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">20</span>% auto</span></span>;
        <span class="hljs-rule" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"><span class="hljs-attribute" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">padding</span>:<span class="hljs-value" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"> <span class="hljs-number" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">25</span>px <span class="hljs-number" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">25</span>px</span></span>;
      <span class="hljs-rule" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">}</span></span>
      <span class="hljs-tag" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">form</span><span class="hljs-rules" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">{
        <span class="hljs-rule" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"><span class="hljs-attribute" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">width</span>:<span class="hljs-value" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"> <span class="hljs-number" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">100</span>%</span></span>;
      <span class="hljs-rule" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">}</span></span>
      <span class="hljs-tag" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">input</span><span class="hljs-rules" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">{
        <span class="hljs-rule" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"><span class="hljs-attribute" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">margin</span>:<span class="hljs-value" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"> <span class="hljs-number" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">5</span>px <span class="hljs-number" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">0</span> <span class="hljs-number" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">15</span>px</span></span>;
        <span class="hljs-rule" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"><span class="hljs-attribute" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">width</span>:<span class="hljs-value" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"> <span class="hljs-number" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">98</span>%</span></span>;
        <span class="hljs-rule" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"><span class="hljs-attribute" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">padding</span>:<span class="hljs-value" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"> <span class="hljs-number" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">4</span>px</span></span>;
      <span class="hljs-rule" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">}</span></span>
      <span class="hljs-tag" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">input</span><span class="hljs-id" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">#btn</span><span class="hljs-rules" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">{
        <span class="hljs-rule" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"><span class="hljs-attribute" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">width</span>:<span class="hljs-value" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"> <span class="hljs-number" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">208</span>px</span></span>;
      <span class="hljs-rule" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">}</span></span>
      <span class="hljs-tag" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">p</span><span class="hljs-rules" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">{
        <span class="hljs-rule" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"><span class="hljs-attribute" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">margin</span>:<span class="hljs-value" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"> <span class="hljs-number" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">0</span>px</span></span>;
        <span class="hljs-rule" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"><span class="hljs-attribute" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">font-size</span>:<span class="hljs-value" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"> <span class="hljs-number" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">13</span>px</span></span>;
        <span class="hljs-rule" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"><span class="hljs-attribute" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">color</span>:<span class="hljs-value" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"> <span class="hljs-hexcolor" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">#757575</span></span></span>;
      <span class="hljs-rule" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">}</span></span>
    </span><span class="hljs-tag" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"></<span class="hljs-title" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">style</span>></span>
  <span class="hljs-tag" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"></<span class="hljs-title" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">head</span>></span>
  <span class="hljs-tag" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"><<span class="hljs-title" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">body</span>></span>
    <span class="hljs-tag" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"><<span class="hljs-title" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">div</span> <span class="hljs-attribute" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">class</span>=<span class="hljs-value" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">"box"</span>></span>
      <span class="hljs-tag" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"><<span class="hljs-title" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">form</span> <span class="hljs-attribute" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">action</span>=<span class="hljs-value" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">""</span>></span>
        <span class="hljs-tag" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"><<span class="hljs-title" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">label</span> <span class="hljs-attribute" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">for</span>=<span class="hljs-value" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">"u"</span>></span>UserName:<span class="hljs-tag" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"></<span class="hljs-title" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">label</span>></span><span class="hljs-tag" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"><<span class="hljs-title" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">br</span>/></span>
        <span class="hljs-tag" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"><<span class="hljs-title" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">input</span> <span class="hljs-attribute" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">type</span>=<span class="hljs-value" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">"text"</span> <span class="hljs-attribute" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">id</span>=<span class="hljs-value" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">"u"</span> <span class="hljs-attribute" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">name</span>=<span class="hljs-value" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">"usern"</span>></span><span class="hljs-tag" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"><<span class="hljs-title" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">br</span>/></span>
        <span class="hljs-tag" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"><<span class="hljs-title" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">label</span> <span class="hljs-attribute" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">for</span>=<span class="hljs-value" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">"p"</span>></span>PassWord:<span class="hljs-tag" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"></<span class="hljs-title" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">label</span>></span><span class="hljs-tag" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"><<span class="hljs-title" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">br</span>/></span>
        <span class="hljs-tag" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"><<span class="hljs-title" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">input</span> <span class="hljs-attribute" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">type</span>=<span class="hljs-value" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">"password"</span> <span class="hljs-attribute" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">id</span>=<span class="hljs-value" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">"p"</span> <span class="hljs-attribute" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">name</span>=<span class="hljs-value" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">"pasw"</span>></span><span class="hljs-tag" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"><<span class="hljs-title" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">br</span>/></span>
        <span class="hljs-tag" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"><<span class="hljs-title" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">p</span>></span>shoma ba vared shodan nshan midahid shrait ra khande va ghabool darid<span class="hljs-tag" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"></<span class="hljs-title" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">p</span>></span><span class="hljs-tag" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"><<span class="hljs-title" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">br</span>/></span>
        <span class="hljs-tag" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"><<span class="hljs-title" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">input</span> <span class="hljs-attribute" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">type</span>=<span class="hljs-value" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">"button"</span> <span class="hljs-attribute" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">name</span>=<span class="hljs-value" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">"btn"</span> <span class="hljs-attribute" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">id</span>=<span class="hljs-value" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">"btn"</span> <span class="hljs-attribute" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">value</span>=<span class="hljs-value" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">"Login"</span> <span class="hljs-attribute" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">onclick</span>=<span class="hljs-value" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">"user()"</span>></span><span class="hljs-tag" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"><<span class="hljs-title" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">br</span>/></span>
        <span class="hljs-tag" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"><<span class="hljs-title" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">br</span>></span><span class="hljs-tag" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"><<span class="hljs-title" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">br</span>></span>
        <span class="hljs-tag" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"><<span class="hljs-title" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">h4</span> <span class="hljs-attribute" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">id</span>=<span class="hljs-value" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">"write"</span>></span>result<span class="hljs-tag" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"></<span class="hljs-title" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">h4</span>></span>
      <span class="hljs-tag" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"></<span class="hljs-title" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">form</span>></span>
    <span class="hljs-tag" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"></<span class="hljs-title" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">div</span>></span>
  <span class="hljs-tag" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"></<span class="hljs-title" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">body</span>></span>
  <span class="hljs-tag" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"><<span class="hljs-title" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">script</span> <span class="hljs-attribute" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">type</span>=<span class="hljs-value" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">"text/javascript"</span>></span><span class="javascript" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;opacity:0.5;padding-bottom:5px;">
  <span class="hljs-keyword" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">var</span> u = [<span class="hljs-string" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">"ali"</span>,<span class="hljs-string" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">"mohammad"</span>,<span class="hljs-string" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">"reza"</span>,<span class="hljs-string" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">"sara"</span>,<span class="hljs-string" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">"zeinab"</span>]
  <span class="hljs-keyword" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">var</span> p = [<span class="hljs-string" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">"alipas"</span>,<span class="hljs-string" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">"mohammadpas"</span>,<span class="hljs-string" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">"rezapas"</span>,<span class="hljs-string" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">"sarapas"</span>,<span class="hljs-string" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">"zeinabpas"</span>]
  <span class="hljs-keyword" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">var</span> n = document.getElementById(<span class="hljs-string" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">"u"</span>).value;
  <span class="hljs-keyword" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">var</span> w = document.getElementById(<span class="hljs-string" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">"p"</span>).value;
  <span class="hljs-function" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"><span class="hljs-keyword" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">function</span> <span class="hljs-title" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">user</span> <span class="hljs-params" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">()</span>{</span>
  <span class="hljs-keyword" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">switch</span> (n){
    <span class="hljs-keyword" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">case</span> u[<span class="hljs-number" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">0</span>]:{
      <span class="hljs-keyword" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">if</span> (w = p[<span class="hljs-number" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">0</span>]){
        alert(<span class="hljs-string" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">"good"</span>);
      }<span class="hljs-keyword" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">else</span> {
        alert(<span class="hljs-string" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">"false"</span>);
      }
      <span class="hljs-keyword" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">break</span>;
    }
    <span class="hljs-keyword" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">case</span> u[<span class="hljs-number" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">1</span>]:{
      <span class="hljs-keyword" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">if</span> (w = p[<span class="hljs-number" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">1</span>]){
        alert(<span class="hljs-string" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">"good"</span>);
      }<span class="hljs-keyword" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">else</span> {
        alert(<span class="hljs-string" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">"false"</span>);
      }
      <span class="hljs-keyword" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">break</span>;
    }
    <span class="hljs-keyword" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">case</span> u[<span class="hljs-number" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">2</span>]:{
      <span class="hljs-keyword" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">if</span> (w = p[<span class="hljs-number" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">2</span>]){
        alert(<span class="hljs-string" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">"good"</span>);
      }<span class="hljs-keyword" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">else</span> {
        alert(<span class="hljs-string" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">"false"</span>);
      }
      <span class="hljs-keyword" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">break</span>;
    }
    <span class="hljs-keyword" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">case</span> u[<span class="hljs-number" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">3</span>]:{
      <span class="hljs-keyword" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">if</span> (w = p[<span class="hljs-number" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">3</span>]){
        alert(<span class="hljs-string" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">"good"</span>);
      }<span class="hljs-keyword" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">else</span> {
        alert(<span class="hljs-string" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">"false"</span>);
      }
      <span class="hljs-keyword" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">break</span>;
    }
    <span class="hljs-keyword" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">case</span> u[<span class="hljs-number" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">4</span>]:{
      <span class="hljs-keyword" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">if</span> (w = p[<span class="hljs-number" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">4</span>]){
        alert(<span class="hljs-string" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">"good"</span>);
      }<span class="hljs-keyword" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">else</span> {
        alert(<span class="hljs-string" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">"false"</span>);
      }
      <span class="hljs-keyword" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">break</span>;
    }
    <span class="hljs-keyword" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">default</span>:{
      alert(<span class="hljs-string" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">"not found"</span>);
    }
  }
  }
  document.getElementById(<span class="hljs-string" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">"write"</span>).inerHTML=(<span class="hljs-string" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">"good"</span>)
  </span><span class="hljs-tag" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"></<span class="hljs-title" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">script</span>></span>
<span class="hljs-tag" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;"></<span class="hljs-title" style="box-sizing:border-box;color:rgb(55, 74, 97);display:block;font-weight:normal;line-height:20px;padding-bottom:5px;">html</span>></span>
logo-samandehi