`
cxh116
  • 浏览: 76522 次
  • 性别: Icon_minigender_1
  • 来自: 湖南
社区版块
存档分类
最新评论

javascript test

 
阅读更多

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Ask</title>
    <meta content="authenticity_token" name="csrf-param" />
<meta content="DN1n4fva1OVTQJ0dP1opPUiu3POBGbLqqxEBvaM+8JE=" name="csrf-token" />

    <!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js" type="text/javascript"></script>
    <![endif]-->

    <link href="/assets/admin/bootstrap_and_overrides.css?body=1" media="all" rel="stylesheet" type="text/css" />
<link href="/assets/admin/app.css?body=1" media="all" rel="stylesheet" type="text/css" />
  </head>
  <body>

  <div class="navbar navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container-fluid">
          <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </a>
          <a href="/admin" class="brand">CSDN问答后台</a>
          <div class="btn-group pull-right">
            <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
              <i class="icon-user"></i> cxh116
              <span class="caret"></span>
            </a>
            <ul class="dropdown-menu">
              <li> <a href="http://pass.csdn.net/account/profile" target="_blank">个人资料</a> </li>
              <li class="divider"></li>
              <li><a href="/users/logout" data-method="post" rel="nofollow">退出</a></li>
            </ul>
          </div>
          <div class="nav-collapse">
            <ul class="nav">
              <li class="active"><a href="/admin">后台首页</a></li>
              <li><a href="/">CSDN问答首页</a></li>
            </ul>
          </div><!--/.nav-collapse -->
        </div>
      </div>
    </div>

    <div class="container-fluid">
      <div class="row-fluid">
        <div class="span2">
          <div class="well sidebar-nav">
            <ul class="nav nav-list">
  <li class="nav-header">用户</li>
  <li><a href="/admin/users">用户信息</a></li>
  <li class="nav-header">问题</li>
  <li><a href="/admin/questions">问题审核</a></li>
  <li><a href="/admin/question_comments">评论审核</a></li>
  <li class="nav-header">回答</li>
  <li><a href="/admin/answers">回答审核</a></li>
  <li><a href="/admin/answer_comments">评论审核</a></li>
  <li class="nav-header">标签</li>
  <li><a href="/admin/tag_summaries">摘要审核</a></li>
  <li><a href="/admin/tag_details">wiki审核</a></li>
  <li class="nav-header">管理</li>
  <li><a href="/admin/admin_logs">管理日志</a></li>
  <li><a href="/admin/archives">存档查看</a></li>
</ul>

          </div><!--/.well -->
        </div><!--/span-->
        <div class="span10">
          <h1><Hello/h1>

        </div><!--/span-->
      </div><!--/row-->

      <hr>

      <footer>
        <p>&copy; CSDN问答 2012</p>
      </footer>

    </div><!--/.fluid-container-->

    <!-- Javascripts
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="/assets/jquery.js?body=1" type="text/javascript"></script>
<script src="/assets/jquery_ujs.js?body=1" type="text/javascript"></script>
<script src="/assets/twitter/bootstrap/bootstrap-transition.js?body=1" type="text/javascript"></script>
<script src="/assets/twitter/bootstrap/bootstrap-alert.js?body=1" type="text/javascript"></script>
<script src="/assets/twitter/bootstrap/bootstrap-modal.js?body=1" type="text/javascript"></script>
<script src="/assets/twitter/bootstrap/bootstrap-dropdown.js?body=1" type="text/javascript"></script>
<script src="/assets/twitter/bootstrap/bootstrap-scrollspy.js?body=1" type="text/javascript"></script>
<script src="/assets/twitter/bootstrap/bootstrap-tab.js?body=1" type="text/javascript"></script>
<script src="/assets/twitter/bootstrap/bootstrap-tooltip.js?body=1" type="text/javascript"></script>
<script src="/assets/twitter/bootstrap/bootstrap-popover.js?body=1" type="text/javascript"></script>
<script src="/assets/twitter/bootstrap/bootstrap-button.js?body=1" type="text/javascript"></script>
<script src="/assets/twitter/bootstrap/bootstrap-collapse.js?body=1" type="text/javascript"></script>
<script src="/assets/twitter/bootstrap/bootstrap-carousel.js?body=1" type="text/javascript"></script>
<script src="/assets/twitter/bootstrap/bootstrap-typeahead.js?body=1" type="text/javascript"></script>
<script src="/assets/twitter/bootstrap.js?body=1" type="text/javascript"></script>
<script src="/assets/admin/admin.js?body=1" type="text/javascript"></script>
<script src="/assets/admin/bootstrap.js?body=1" type="text/javascript"></script>
<script src="/assets/admin/app.js?body=1" type="text/javascript"></script>
<script type="text/javascript" language="javascript" charset="utf-8">
//<![CDATA[
  var e = e||event
function getCookie(c_name)
{
var i,x,y,ARRcookies=document.cookie.split(";");
for (i=0;i<ARRcookies.length;i++)
  {
  x=ARRcookies[i].substr(0,ARRcookies[i].indexOf("="));
  y=ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1);
  x=x.replace(/^\s+|\s+$/g,"");
  if (x==c_name)
    {
    return unescape(y);
    }
  }
}

function setCookie(c_name,value,exdays)
{
var exdate=new Date();
exdate.setDate(exdate.getDate() + exdays);
var c_value=escape(value) + ((exdays==null) ? "" : "; expires="+exdate.toUTCString());
document.cookie=c_name + "=" + c_value;
}

function checkCookie()
{
var username=getCookie("username");
if (username!=null && username!="")
  {
  alert("Welcome again " + username);
  }
else 
  {
  username=prompt("Please enter your name:","");
  if (username!=null && username!="")
    {
    setCookie("username",username,365);
    }
  }
}
//]]>
</script>

  </body>
</html>

分享到:
评论
3 楼 cxh116 2012-11-13  
<script>
//<![CDATA[
    var e = e || event;
//]]>
</script>
2 楼 Hooopo 2012-11-13  
<script>
  var e = e || event;
</script>
1 楼 Hooopo 2012-11-13  
var e = e || event;

相关推荐

Global site tag (gtag.js) - Google Analytics