-
Notifications
You must be signed in to change notification settings - Fork 2
/
appindex.html
143 lines (133 loc) · 6.81 KB
/
appindex.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<!DOCTYPE html>
<html ng-app="dmmLogin" ng-controller="mainCtrl">
<head>
<title>DMM Login</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="force-rendering" content="webkit">
<meta name="renderer" content="webkit"/>
<meta http-equiv="X-UA-Compatible" content="IE=EDGE"/>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">
<!-- favicon -->
<link rel="apple-touch-icon" sizes="57x57" href="/asset/favicon/apple-touch-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="/asset/favicon/apple-touch-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="/asset/favicon/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="/asset/favicon/apple-touch-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="/asset/favicon/apple-touch-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="/asset/favicon/apple-touch-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="/asset/favicon/apple-touch-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="/asset/favicon/apple-touch-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="/asset/favicon/apple-touch-icon-180x180.png">
<link rel="icon" type="image/png" href="/asset/favicon/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="/asset/favicon/android-chrome-192x192.png" sizes="192x192">
<link rel="icon" type="image/png" href="/asset/favicon/favicon-96x96.png" sizes="96x96">
<link rel="icon" type="image/png" href="/asset/favicon/favicon-16x16.png" sizes="16x16">
<link rel="manifest" href="/asset/favicon/manifest.json">
<link rel="shortcut icon" href="/asset/favicon/favicon.ico">
<meta name="msapplication-TileColor" content="#2b95df">
<meta name="msapplication-TileImage" content="/asset/favicon/mstile-144x144.png">
<meta name="theme-color" content="#2b95df">
<!--[if lt IE 9]>
<script src="/asset/lib/html5shiv/3.7.3/html5shiv.min.js"></script>
<![endif]-->
<script src="/asset/lib/angularjs/1.6.0/angular.min.js"></script>
<script src="/asset/lib/angularjs/1.6.0/angular-animate.min.js"></script>
<script src="/asset/lib/angularjs/1.6.0/angular-aria.min.js"></script>
<script src="/asset/lib/angular.material/1.1.5/angular-material.min.js"></script>
<link rel="stylesheet" href="/asset/lib/angular.material/1.1.5/angular-material.min.css">
<link rel='stylesheet' href='/asset/lib/angular-loading-bar/0.9.0/loading-bar.min.css' type='text/css'>
<script type='text/javascript' src='/asset/lib/angular-loading-bar/0.9.0/loading-bar.min.js'></script>
</head>
<body class="noto bg">
<input type="hidden" id="init-data" value="<?= $init_data ?>">
<div layout="column" role="main" layout-align="start center" flex ng-cloak>
<div id="flashWrap" ng-if="gameloaded">
<embed id="externalswf" width="800" height="480"
wmode="opaque" quality="high" bgcolor="#000000"
allowscriptaccess="always" type="application/x-shockwave-flash" base="{{flashBase}}"
class="center-block" embed-src="{{flashLink}}" src="{{flashLink}}"></embed>
<div layout="row" layout-align="center">
<md-button class="md-raised md-accent" ng-click="relogin()">re-login</md-button>
</div>
</div>
<div class="login-form-wrap" ng-if="!gameloaded">
<div md-whiteframe="1" flex layout="column" layout-align="stretch stretch">
<md-toolbar>
<div class="md-toolbar-tools">
<h2>
<span>DMM Login</span>
</h2>
<md-button href="https://github.com/slime7/dmmlogin" title="view on Github" class="md-icon-button">
<md-icon
md-svg-src='data:image/svg+xml,<svg height="28" viewBox="0 0 16 16" width="28"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59 0.4 0.07 0.55-0.17 0.55-0.38 0-0.19-0.01-0.82-0.01-1.49-2.01 0.37-2.53-0.49-2.69-0.94-0.09-0.23-0.48-0.94-0.82-1.13-0.28-0.15-0.68-0.52-0.01-0.53 0.63-0.01 1.08 0.58 1.23 0.82 0.72 1.21 1.87 0.87 2.33 0.66 0.07-0.52 0.28-0.87 0.51-1.07-1.78-0.2-3.64-0.89-3.64-3.95 0-0.87 0.31-1.59 0.82-2.15-0.08-0.2-0.36-1.02 0.08-2.12 0 0 0.67-0.21 2.2 0.82 0.64-0.18 1.32-0.27 2-0.27 0.68 0 1.36 0.09 2 0.27 1.53-1.04 2.2-0.82 2.2-0.82 0.44 1.1 0.16 1.92 0.08 2.12 0.51 0.56 0.82 1.27 0.82 2.15 0 3.07-1.87 3.75-3.65 3.95 0.29 0.25 0.54 0.73 0.54 1.48 0 1.07-0.01 1.93-0.01 2.2 0 0.21 0.15 0.46 0.55 0.38C13.71 14.53 16 11.53 16 8 16 3.58 12.42 0 8 0z"></path></svg>'
aria-label="Github">
</md-icon>
</md-button>
<span flex></span>
</div>
</md-toolbar>
<md-content class="login-form">
<md-input-container>
<label>DMM ID</label>
<input ng-model="login_data.email" type="email">
</md-input-container>
<md-input-container md-is-error="false">
<label>Password</label>
<input ng-model="login_data.password" type="password">
</md-input-container>
<md-switch ng-model="login_data.remember">
Remember me
</md-switch>
<md-radio-group ng-model="login_data.loadType">
<md-radio-button value="include" class="md-primary" ng-hide="1"> include swf</md-radio-button>
<md-radio-button value="redirect" class="md-primary"> redirect to game</md-radio-button>
<md-radio-button value="redirect2" class="md-primary"> redirect to osapi</md-radio-button>
</md-radio-group>
<div layout="row">
<md-button ng-disabled="logining" ng-click="login()" class="md-raised md-primary">Sign in</md-button>
<md-button ng-disabled="logining" ng-show="hasCookie" ng-click="login(true)"
class="md-raised md-accent">
Use cookie
</md-button>
</div>
</md-content>
</div>
</div>
</div>
<script type="text/ng-template" id="panel.tmpl.html">
<div role="dialog" layout="column" layout-align="center center">
<md-content layout-margin layout-padding>
<div layout="colum" layout-align="space-around">
<md-progress-circular md-mode="indeterminate"></md-progress-circular>
</div>
<p>redirecting to your game...</p>
</md-content>
</div>
</script>
<style>
html {
position: relative;
min-height: 100%;
}
body.noto {
font-family: "Noto Sans", "Noto Sans CJK SC", "Microsoft YaHei", "微软雅黑", tahoma, arial, sans-serif;
}
body.bg {
background-color: #fafafa;
}
.login-form-wrap {
max-width: 330px;
padding: 15px;
}
.login-form {
padding: 8px;
}
.md-errors-spacer {
display: none;
}
</style>
<script src="/asset/js/app.js?v=1.161202"></script>
</body>
</html>