Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
srs
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
winlin
2014-05-23 22:39:13 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
cf7b6f25f61cd69c36ccd5572a836341f02615bb
cf7b6f25
1 parent
0eb9e0af
add srs community
隐藏空白字符变更
内嵌
并排对比
正在显示
10 个修改的文件
包含
580 行增加
和
0 行删除
trunk/research/community/server.py
trunk/research/community/static-dir/tencent.qq.connect/callback.html
trunk/research/community/static-dir/tencent.qq.connect/conf.js
trunk/research/community/static-dir/tencent.qq.connect/css/index_black.css
trunk/research/community/static-dir/tencent.qq.connect/css/style.css
trunk/research/community/static-dir/tencent.qq.connect/images/login.png
trunk/research/community/static-dir/tencent.qq.connect/index.html
trunk/research/community/static-dir/tencent.qq.connect/js/jquery.js
trunk/research/community/static-dir/tencent.qq.connect/login.html
trunk/research/community/static-dir/ui/auth.html
trunk/research/community/server.py
0 → 100755
查看文件 @
cf7b6f2
#!/usr/bin/python
'''
The MIT License (MIT)
Copyright (c) 2013-2014 winlin
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
'''
"""
the community is a default demo server for srs
"""
import
sys
# reload sys model to enable the getdefaultencoding method.
reload
(
sys
)
# set the default encoding to utf-8
# using exec to set the encoding, to avoid error in IDE.
exec
(
"sys.setdefaultencoding('utf-8')"
)
assert
sys
.
getdefaultencoding
()
.
lower
()
==
"utf-8"
import
os
,
json
,
time
,
datetime
,
cherrypy
,
threading
# simple log functions.
def
trace
(
msg
):
date
=
datetime
.
datetime
.
now
()
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
)
print
"[
%
s][trace]
%
s"
%
(
date
,
msg
)
# enable crossdomain access for js-client
# define the following method:
# def OPTIONS(self, *args, **kwargs)
# enable_crossdomain()
# invoke this method to enable js to request crossdomain.
def
enable_crossdomain
():
cherrypy
.
response
.
headers
[
"Access-Control-Allow-Origin"
]
=
"*"
cherrypy
.
response
.
headers
[
"Access-Control-Allow-Methods"
]
=
"GET, POST, HEAD, PUT, DELETE"
# generate allow headers for crossdomain.
allow_headers
=
[
"Cache-Control"
,
"X-Proxy-Authorization"
,
"X-Requested-With"
,
"Content-Type"
]
cherrypy
.
response
.
headers
[
"Access-Control-Allow-Headers"
]
=
","
.
join
(
allow_headers
)
# error codes definition
class
Error
:
# ok, success, completed.
success
=
0
# HTTP RESTful path.
class
Root
(
object
):
exposed
=
True
def
__init__
(
self
):
self
.
api
=
Api
()
def
GET
(
self
):
enable_crossdomain
();
return
json
.
dumps
({
"code"
:
Error
.
success
,
"urls"
:{
"api"
:
"the api root"
}})
def
OPTIONS
(
self
,
*
args
,
**
kwargs
):
enable_crossdomain
();
# HTTP RESTful path.
class
Api
(
object
):
exposed
=
True
def
__init__
(
self
):
self
.
v1
=
V1
()
def
GET
(
self
):
enable_crossdomain
();
return
json
.
dumps
({
"code"
:
Error
.
success
,
"urls"
:
{
"v1"
:
"the api version 1.0"
}
});
def
OPTIONS
(
self
,
*
args
,
**
kwargs
):
enable_crossdomain
();
# HTTP RESTful path. to access as:
# http://127.0.0.1:8085/api/v1/clients
class
V1
(
object
):
exposed
=
True
def
__init__
(
self
):
pass
;
def
OPTIONS
(
self
,
*
args
,
**
kwargs
):
enable_crossdomain
();
'''
main code start.
'''
# donot support use this module as library.
if
__name__
!=
"__main__"
:
raise
Exception
(
"embed not support"
)
# check the user options
if
len
(
sys
.
argv
)
<=
1
:
print
"SRS community server, Copyright (c) 2013-2014 winlin"
print
"Usage: python
%
s <port>"
%
(
sys
.
argv
[
0
])
print
" port: the port to listen at."
print
"For example:"
print
" python
%
s 1949"
%
(
sys
.
argv
[
0
])
print
""
print
"See also: https://github.com/winlinvip/simple-rtmp-server"
sys
.
exit
(
1
)
# parse port from user options.
port
=
int
(
sys
.
argv
[
1
])
static_dir
=
os
.
path
.
abspath
(
os
.
path
.
join
(
os
.
path
.
dirname
(
sys
.
argv
[
0
]),
"static-dir"
))
trace
(
"api server listen at port:
%
s, static_dir:
%
s"
%
(
port
,
static_dir
))
# cherrypy config.
conf
=
{
'global'
:
{
'server.shutdown_timeout'
:
1
,
'server.socket_host'
:
'0.0.0.0'
,
'server.socket_port'
:
port
,
'tools.encode.on'
:
True
,
'tools.staticdir.on'
:
True
,
'tools.encode.encoding'
:
"utf-8"
,
#'server.thread_pool': 2, # single thread server.
},
'/'
:
{
'tools.staticdir.dir'
:
static_dir
,
'tools.staticdir.index'
:
"index.html"
,
# for cherrypy RESTful api support
'request.dispatch'
:
cherrypy
.
dispatch
.
MethodDispatcher
()
}
}
# start cherrypy web engine
trace
(
"start cherrypy server"
)
root
=
Root
()
cherrypy
.
quickstart
(
root
,
'/'
,
conf
)
...
...
trunk/research/community/static-dir/tencent.qq.connect/callback.html
0 → 100644
查看文件 @
cf7b6f2
<html>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
/>
<meta
property=
"qc:admins"
content=
"35453715257630661457637577164165323"
/>
<title>
DailyReport
</title>
</head>
<body>
<script
type=
"text/javascript"
src=
"http://tajs.qq.com/stats?sId=27171919"
charset=
"UTF-8"
></script>
<script
type=
"text/javascript"
src=
"js/jquery.js"
></script>
<script
type=
"text/javascript"
>
function
parse_query_string
(){
var
query_string
=
String
(
window
.
location
.
hash
).
split
(
"#"
)[
1
];
if
(
query_string
==
undefined
){
return
{};
}
var
queries
=
query_string
.
split
(
"&"
);
var
obj
=
{};
$
(
queries
).
each
(
function
(){
var
query
=
this
.
split
(
"="
);
obj
[
query
[
0
]]
=
query
[
1
];
});
return
obj
;
}
function
jump
(){
// discovery the query string.
var
obj
=
parse_query_string
();
//console.log(obj);
// for IE, cannot pase the char ":", we use ".." to substitued.
var
host
=
obj
.
state
;
if
(
!
host
){
alert
(
"invalid state to parsed to host"
);
return
;
}
// generate the redirect url.
var
url
=
""
;
if
(
host
==
"check"
)
{
url
=
"http://182.92.80.26:8085/srs/releases/index.html"
+
window
.
location
.
hash
;
}
else
{
url
=
"http://182.92.80.26:1949/ui/auth.html"
+
window
.
location
.
hash
;
}
//console.log(url);
//document.write(url);
window
.
location
.
href
=
url
;
}
jump
();
</script>
</body>
...
...
trunk/research/community/static-dir/tencent.qq.connect/conf.js
0 → 100644
查看文件 @
cf7b6f2
function
enable_auth
(){
return
true
;
}
function
get_system_title
(){
return
'SRS'
;
}
function
get_qq_oauth_app_id
(){
return
'xxxxxx'
;
}
function
get_qq_oauth_redirect_url
(){
return
'http://xxxxxx/callback.html'
;
}
...
...
trunk/research/community/static-dir/tencent.qq.connect/css/index_black.css
0 → 100755
查看文件 @
cf7b6f2
#slideshow_wrapper
{
POSITION
:
relative
;
PADDING-BOTTOM
:
0px
;
PADDING-LEFT
:
0px
;
WIDTH
:
980px
;
PADDING-RIGHT
:
0px
;
HEIGHT
:
446px
;
OVERFLOW
:
hidden
;
PADDING-TOP
:
0px
}
#slideshow_footbar
{
Z-INDEX
:
5
;
POSITION
:
absolute
;
WIDTH
:
100%
;
BOTTOM
:
0px
;
HEIGHT
:
30px
;
}
#slideshow_photo
{
POSITION
:
absolute
;
WIDTH
:
100%
;
HEIGHT
:
100%
;
CURSOR
:
pointer
}
#slideshow_photo
A
{
Z-INDEX
:
1
;
BORDER-BOTTOM
:
0px
;
POSITION
:
absolute
;
BORDER-LEFT
:
0px
;
MARGIN
:
0px
;
DISPLAY
:
block
;
BORDER-TOP
:
0px
;
TOP
:
0px
;
BORDER-RIGHT
:
0px
;
LEFT
:
0px
}
#slideshow_footbar
.slideshow-bt
{
BACKGROUND-COLOR
:
#ccc
;
MARGIN
:
10px
0px
0px
10px
;
WIDTH
:
9px
;
DISPLAY
:
inline
;
FLOAT
:
left
;
HEIGHT
:
9px
;
border-radius
:
5px
;
FONT-SIZE
:
0px
}
#slideshow_footbar
.bt-on
{
BACKGROUND-COLOR
:
#30b1eb
;
width
:
9px
;
height
:
9px
;
}
...
...
trunk/research/community/static-dir/tencent.qq.connect/css/style.css
0 → 100755
查看文件 @
cf7b6f2
@charset
"utf-8"
;
/* CSS Document */
*
{
margin
:
0
;
padding
:
0
;
word-break
:
break-all
;}
html
,
body
{
height
:
auto
;}
html
,
body
,
a
,
h1
,
h2
,
h3
,
h4
,
h5
,
h6
,
p
,
div
,
ul
,
li
,
ol
,
dl
,
dt
,
dd
,
img
,
form
,
input
,
textarea
,
select
,
fieldset
{
margin
:
0px
;
padding
:
0px
}
body
,
table
,
input
,
select
,
textarea
{
font-family
:
'微软雅黑'
,
Arial
;
font-size
:
12px
;}
body
{}
img
{
border
:
0px
;}
.td_left
{
text-align
:
left
;
padding-left
:
3px
;
background
:
#FFF
;}
.td_right
{
text-align
:
right
;
padding-right
:
5px
;}
.btn_1
{
margin
:
10px
0px
;
padding
:
5px
20px
;
cursor
:
pointer
;}
/*logo
------------------------------------------------------------------------------------------------- */
#logo
{
width
:
980px
;
height
:
52px
;
margin
:
0px
auto
;
color
:
#FFF
;
line-height
:
25px
;
font-size
:
12px
;}
#logo
span
{
float
:
right
;
margin-top
:
20px
;
margin-right
:
10px
;
line-height
:
32
x
;}
#logo
span
a
{
margin-left
:
8px
;}
/*主导航
------------------------------------------------------------------------------------------------- */
#nav
{
width
:
980px
;
height
:
35px
;
line-height
:
35px
;
*
line-height
:
32px
;
margin
:
0px
auto
;}
#nav
ul
{
list-style-type
:
none
;
width
:
inherit
;
margin
:
0px
auto
;}
#nav
ul
li
{
float
:
left
;
list-style-type
:
none
;
width
:
162.5px
;
height
:
35px
;
padding
:
0px
;
text-align
:
center
;
display
:
block
;
overflow
:
hidden
;
background
:
url(../images/mav_bg.gif)
no-repeat
;
background-position
:
0px
0px
;}
#nav
ul
li
:hover
{
float
:
left
;
list-style-type
:
none
;
width
:
162.5px
;
height
:
35px
;
padding
:
0px
;
text-align
:
center
;
display
:
block
;
overflow
:
hidden
;
background
:
url(../images/mav_bg.gif)
no-repeat
;
background-position
:
0px
-35px
;}
#nav
ul
li
.S
{
float
:
left
;
list-style-type
:
none
;
width
:
162.5px
;
height
:
35px
;
padding
:
0px
;
text-align
:
center
;
display
:
block
;
overflow
:
hidden
;
background
:
url(../images/mav_bg.gif)
no-repeat
;
background-position
:
0px
-35px
;}
#nav
ul
li
.L
{
width
:
162.5px
;
height
:
35px
;
padding
:
0px
;
background
:
url(../images/mav_bg_l.gif)
no-repeat
;
background-position
:
0px
0px
;}
#nav
ul
li
.L
:hover
{
width
:
162.5px
;
height
:
35px
;
padding
:
0px
;
background
:
url(../images/mav_bg_l.gif)
no-repeat
;
background-position
:
0px
-35px
;}
#nav
ul
li
.R
{
width
:
162.5px
;
height
:
35px
;
padding
:
0px
;
background
:
url(../images/mav_bg_r.gif)
no-repeat
;
background-position
:
0px
0px
;}
#nav
ul
li
.R
:hover
{
width
:
162.5px
;
height
:
35px
;
padding
:
0px
;
background
:
url(../images/mav_bg_r.gif)
no-repeat
;
background-position
:
0px
-35px
;}
#nav
ul
li
.line
{
width
:
1px
;
height
:
35px
;
margin
:
0px
0px
;
padding
:
0px
;
background
:
#287ab4
;}
#nav
ul
li
a
{
width
:
inherit
;
height
:
35px
;
line-height
:
33px
;
*
line-height
:
32px
;
font-size
:
14px
;
color
:
#fff
;
padding
:
8px
50px
;
text-decoration
:
none
;
box-shadow
:
0px
0px
1px
#4bd2ef
inset
;}
#nav
ul
li
a
:hover
{
color
:
#fff
;
padding
:
8px
50px
;}
/*banner
------------------------------------------------------------------------------------------------- */
#banner
{
width
:
980px
;
height
:
446px
;
margin
:
0px
auto
;
position
:
relative
;}
/*主内容
------------------------------------------------------------------------------------------------- */
#container
{
width
:
980px
;
margin
:
0px
auto
40px
auto
;
padding
:
0px
;}
/*栏目模块
------------------------------------------------------------------------------------------------- */
#module
{
width
:
239px
;
height
:
160px
;
float
:
left
;
margin-right
:
8px
;}
#module
h1
{
padding-left
:
15px
;
padding-top
:
15px
;
font-size
:
16px
;
font-weight
:
normal
;
color
:
#333
;}
#module
h2
{
padding-left
:
15px
;
padding-top
:
5px
;
font-size
:
12px
;
color
:
#000
;}
#module
p
{
padding-left
:
15px
;
padding-top
:
5px
;
padding-right
:
70px
;
color
:
#707070
;
line-height
:
20px
;}
#module
a
{
color
:
none
;
text-decoration
:
none
;}
/*产品模块
------------------------------------------------------------------------------------------------- */
#P_module
{
width
:
319px
;
height
:
160px
;
float
:
left
;
margin-right
:
11px
;
background
:
url(../images/module_P.gif)
no-repeat
;}
#P_module
h1
{
padding-left
:
15px
;
padding-top
:
15px
;
font-size
:
16px
;
font-weight
:
normal
;
color
:
#333
;}
#P_module
h2
{
padding-left
:
15px
;
padding-top
:
5px
;
font-size
:
12px
;
color
:
#000
;}
#P_module
p
{
padding-left
:
15px
;
padding-top
:
5px
;
padding-right
:
70px
;
color
:
#707070
;
line-height
:
20px
;}
#P_module
a
{
color
:
none
;
text-decoration
:
none
;}
/*列表
------------------------------------------------------------------------------------------------- */
#list
{
float
:
left
;
width
:
189px
;
height
:
230px
;
margin
:
0px
;
*
margin-top
:
20px
;
background
:
url(../images/list_bg.gif)
no-repeat
;}
#list
ul
{
list-style-type
:
none
;
width
:
inherit
;
margin
:
0px
;
padding-left
:
5px
;
padding-top
:
15px
;}
#list
ul
li
{
width
:
92%
;
list-style-type
:
none
;
height
:
25px
;
line-height
:
25px
;}
#list
ul
li
:hover
{
color
:
#000
;
background
:
url(../images/arrow.gif)
no-repeat
right
center
;}
#list
ul
li
.sel
{
font-size
:
14px
;
color
:
#000
;
font-weight
:
bold
;
background
:
url(../images/arrow.gif)
no-repeat
right
center
;}
#list
ul
li
a
{
width
:
inherit
;
text-decoration
:
none
;
color
:
#666
;
padding
:
6px
10px
6px
10px
;}
#list
ul
li
a
:hover
{
width
:
inherit
;
color
:
#000
;
padding
:
6px
10px
6px
10px
;}
/*产品详细
------------------------------------------------------------------------------------------------- */
#detailed
{
width
:
750px
;
height
:
360px
;
margin-left
:
200px
;
margin-top
:
20px
;
background
:
url(../images/SCT.jpg)
no-repeat
;
padding
:
15px
;}
#detailed
h1
{
width
:
auto
;
line-height
:
40px
;
font-size
:
36px
;
font-weight
:
normal
;}
#detailed
p
{
width
:
90%
;
padding-top
:
15px
;
line-height
:
28px
;
font-size
:
14px
;}
#detailed
ul
{
list-style-type
:
none
;
width
:
50%
;
padding
:
0px
;
padding-top
:
15px
;}
#detailed
ul
li
{
list-style-type
:
none
;
line-height
:
28px
;
color
:
#666
;}
/*产品特性
------------------------------------------------------------------------------------------------- */
#feature
{
width
:
775px
;
*
width
:
775px
;
margin-left
:
200px
;}
#feature
h1
{
width
:
auto
;
line-height
:
25px
;
font-size
:
14px
;
font-weight
:
normal
;
padding-left
:
15px
;
border-bottom
:
1px
solid
#bfbfbf
;}
#feature
ul
{
width
:
inherit
;
list-style-type
:
none
;
margin-top
:
10px
;}
#feature
ul
li
{
width
:
355px
;
height
:
150px
;
list-style-type
:
none
;
padding
:
15px
;
margin-bottom
:
5px
;
display
:
block
;
overflow
:
hidden
;
background
:
url(../images/feature_bg.gif)
no-repeat
;}
#feature
ul
li
h2
{
line-height
:
23px
;
font-size
:
14px
;
font-weight
:
normal
;}
#feature
ul
li
p
{
width
:
inherit
;
line-height
:
20px
;
color
:
#666
;}
/*解决方案 说明
------------------------------------------------------------------------------------------------- */
#explain
{
width
:
980px
;
height
:
210px
;
padding-top
:
20px
;
padding-bottom
:
50px
;
background
:
url(../images/explain_bg.jpg)
no-repeat
;}
#explain
h1
{
width
:
auto
;
line-height
:
40px
;
padding-left
:
15px
;
font-size
:
30px
;
font-weight
:
normal
;}
#explain
h1
span
{
float
:
right
;
font-size
:
12px
;
padding-right
:
15px
;}
#explain
h2
{
font-size
:
16px
;
padding-left
:
15px
;
padding-top
:
10px
;}
#explain
p
{
width
:
60%
;
padding
:
15px
;
margin-top
:
10px
;
line-height
:
28px
;
font-size
:
16px
;}
#explain
ul
{
list-style-type
:
none
;
width
:
inherit
;
padding
:
0px
;
padding-top
:
15px
;
padding-left
:
15px
;}
#explain
ul
li
{
list-style-type
:
none
;
line-height
:
28px
;
color
:
#666
;}
/*解决方案 列表
------------------------------------------------------------------------------------------------- */
#Slist
{
float
:
left
;
width
:
180px
;
height
:
230px
;
margin
:
0px
;
*
margin-top
:
20px
;
padding-right
:
6px
;
border-right
:
1px
dotted
#bfbfbf
;}
#Slist
ul
{
list-style-type
:
none
;
width
:
inherit
;
margin
:
0px
;
padding-left
:
5px
;
padding-top
:
15px
;}
#Slist
ul
li
{
width
:
92%
;
list-style-type
:
none
;
height
:
25px
;
line-height
:
25px
;}
#Slist
ul
li
:hover
{
color
:
#000
;
background
:
url(../images/arrow.gif)
no-repeat
right
center
;}
#Slist
ul
li
.sel
{
font-size
:
14px
;
color
:
#000
;
font-weight
:
bold
;
background
:
url(../images/arrow.gif)
no-repeat
right
center
;}
#Slist
ul
li
a
{
width
:
inherit
;
text-decoration
:
none
;
color
:
#666
;
padding
:
6px
10px
6px
10px
;}
#Slist
ul
li
a
:hover
{
width
:
inherit
;
color
:
#000
;
padding
:
6px
10px
6px
10px
;}
/*解决方案
------------------------------------------------------------------------------------------------- */
#solution
{
width
:
auto
;
height
:
auto
;
margin-left
:
200px
;
margin-top
:
20px
;}
#solution
h1
{
width
:
auto
;
line-height
:
24px
;
font-size
:
18px
;
font-weight
:
normal
;}
#solution
h1
span
{
float
:
right
;
font-size
:
12px
;
padding-right
:
15px
;}
#solution
h1
span
a
{
color
:
#999
;
text-decoration
:
none
;}
#solution
h1
span
a
:hover
{
color
:
#09F
;}
#solution
p
{
width
:
auto
;
padding
:
15px
;
margin-top
:
10px
;
line-height
:
28px
;
font-size
:
14px
;
background
:
#f1f9fd
;
border
:
1px
solid
#bfbfbf
;
border-radius
:
5px
;
-moz-border-radius
:
5px
;
-webkit-border-radius
:
5px
;}
#solution
ul
{
list-style-type
:
none
;
width
:
50%
;
padding
:
0px
;
padding-top
:
15px
;}
#solution
ul
li
{
list-style-type
:
none
;
line-height
:
28px
;
color
:
#666
;}
/*招贤纳士
------------------------------------------------------------------------------------------------- */
#career
{
width
:
980px
;
height
:
auto
;
margin-top
:
20px
;
padding-bottom
:
20px
;
background
:
url(../images/career_bg.jpg)
no-repeat
;}
#career
h1
{
width
:
auto
;
line-height
:
40px
;
padding-left
:
15px
;
font-size
:
30px
;
font-weight
:
normal
;}
#career
h1
span
{
float
:
right
;
font-size
:
12px
;
padding-right
:
15px
;}
#career
h2
{
font-size
:
14px
;}
#career
p
{
width
:
80%
;
padding
:
15px
;
margin-top
:
10px
;
line-height
:
28px
;
font-size
:
14px
;}
#career
ul
{
list-style-type
:
none
;
width
:
inherit
;
padding
:
0px
;
padding-top
:
15px
;
padding-left
:
15px
;}
#career
ul
li
{
list-style-type
:
none
;
line-height
:
28px
;
color
:
#666
;}
/*招聘
------------------------------------------------------------------------------------------------- */
#recruitment
{
width
:
918px
;
height
:
auto
;
padding
:
30px
;
background
:
url(../images/recruitment_bg.jpg)
;
background-repeat
:
repeat-x
;
border
:
1px
solid
#FFF
;
*
border
:
1px
solid
#bfbfbf
;
box-shadow
:
0px
2px
3px
#999999
;
border-radius
:
5px
;
-moz-border-radius
:
5px
;
-webkit-border-radius
:
5px
;}
#recruitment
h1
{
width
:
auto
;
line-height
:
28px
;
font-size
:
18px
;
font-weight
:
bold
;}
#recruitment
h1
span
{
float
:
right
;
font-size
:
12px
;
padding-right
:
15px
;
font-weight
:
normal
;}
#recruitment
p
{
width
:
auto
;
margin-top
:
10px
;
line-height
:
23px
;
font-size
:
14px
;}
#recruitment
ul
{
list-style-type
:
none
;
width
:
inherit
;
padding
:
0px
;
padding-top
:
15px
;
padding-left
:
15px
;}
#recruitment
ul
li
{
list-style-type
:
none
;
line-height
:
28px
;
color
:
#666
;}
/*关于我们
------------------------------------------------------------------------------------------------- */
#aboutUs
{
width
:
980px
;
height
:
auto
;
margin-top
:
20px
;
padding-bottom
:
20px
;
background
:
url(../images/aboutUs_bg.jpg)
no-repeat
;}
#aboutUs
h1
{
width
:
auto
;
line-height
:
40px
;
padding-left
:
15px
;
font-size
:
30px
;
font-weight
:
normal
;}
#aboutUs
h1
span
{
float
:
right
;
font-size
:
12px
;
padding-right
:
15px
;}
#aboutUs
h2
{
font-size
:
16px
;
padding-left
:
15px
;
padding-top
:
10px
;}
#aboutUs
p
{
width
:
80%
;
padding
:
15px
;
margin-top
:
10px
;
line-height
:
28px
;
font-size
:
14px
;}
#aboutUs
ul
{
list-style-type
:
none
;
width
:
inherit
;
padding
:
0px
;
padding-top
:
15px
;
padding-left
:
15px
;}
#aboutUs
ul
li
{
list-style-type
:
none
;
line-height
:
28px
;
color
:
#666
;}
/*联系我们
------------------------------------------------------------------------------------------------- */
#contactUs
{
width
:
980px
;
height
:
auto
;
padding-top
:
20px
;
padding-bottom
:
0px
;
background
:
url(../images/contactUs_bg.jpg)
no-repeat
;}
#contactUs
h1
{
width
:
auto
;
line-height
:
40px
;
padding-left
:
15px
;
font-size
:
30px
;
font-weight
:
normal
;}
#contactUs
h1
span
{
float
:
right
;
font-size
:
12px
;
padding-right
:
15px
;}
#contactUs
h2
{
font-size
:
16px
;
padding-left
:
15px
;
padding-top
:
10px
;}
#contactUs
p
{
width
:
80%
;
padding
:
15px
;
margin-top
:
10px
;
line-height
:
28px
;
font-size
:
14px
;}
#contactUs
ul
{
list-style-type
:
none
;
width
:
inherit
;
padding
:
0px
;
padding-top
:
15px
;
padding-left
:
15px
;}
#contactUs
ul
li
{
list-style-type
:
none
;
line-height
:
28px
;
color
:
#000
;}
/*地图
------------------------------------------------------------------------------------------------- */
#map
{
width
:
918px
;
height
:
550px
;
padding
:
30px
;
background
:
url(../images/recruitment_bg.jpg)
;
background-repeat
:
repeat-x
;
border
:
1px
solid
#FFF
;
*
border
:
1px
solid
#bfbfbf
;
box-shadow
:
0px
2px
3px
#999999
;
border-radius
:
5px
;
-moz-border-radius
:
5px
;
-webkit-border-radius
:
5px
;}
#map
h1
{
width
:
auto
;
line-height
:
28px
;
font-size
:
18px
;
font-weight
:
bold
;}
#map
h1
span
{
float
:
right
;
font-size
:
12px
;
padding-right
:
15px
;}
#map
h1
span
a
{
color
:
#999
;
text-decoration
:
none
;}
#map
h1
span
a
:hover
{
color
:
#09F
;}
#map
p
{
width
:
auto
;
margin-top
:
10px
;
line-height
:
23px
;
font-size
:
14px
;
background
:;
}
#map
ul
{
list-style-type
:
none
;
width
:
inherit
;
padding
:
0px
;
padding-top
:
15px
;
padding-left
:
15px
;}
#map
ul
li
{
list-style-type
:
none
;
line-height
:
28px
;
color
:
#666
;}
/*体验中心
------------------------------------------------------------------------------------------------- */
#experience
{
width
:
485px
;
height
:
160px
;
float
:
left
;
margin-right
:
10px
;}
#experience
h1
{
padding-left
:
15px
;
padding-top
:
15px
;
font-size
:
30px
;
font-weight
:
normal
;
color
:
#333
;}
#experience
h2
{
padding-left
:
15px
;
padding-top
:
5px
;
font-size
:
12px
;
color
:
#000
;}
#experience
p
{
padding-left
:
15px
;
padding-top
:
5px
;
padding-right
:
70px
;
color
:
#707070
;
line-height
:
20px
;}
#experience
a
{
color
:
none
;
text-decoration
:
none
;}
/*演示
------------------------------------------------------------------------------------------------- */
/*#demonstrate { width:750px; height:360px; margin-left:200px; margin-top:20px; background:#999; padding:15px;}*/
#demonstrate
{
width
:
750px
;
height
:
360px
;
margin-left
:
200px
;
margin-top
:
20px
;
background
:
url(../images/wait.jpg)
;
padding
:
0px
;}
#demonstrate
h1
{
width
:
auto
;
line-height
:
28px
;
font-size
:
18px
;
font-weight
:
normal
;}
#demonstrate
p
{
width
:
inherit
;
padding-top
:
15px
;
line-height
:
28px
;
font-size
:
14px
;}
#demonstrate
ul
{
list-style-type
:
none
;
width
:
50%
;
padding
:
0px
;
padding-top
:
15px
;}
#demonstrate
ul
li
{
list-style-type
:
none
;
line-height
:
28px
;
color
:
#666
;}
/*Copyright
------------------------------------------------------------------------------------------------- */
#footer
{
width
:
980px
;
height
:
100px
;
margin
:
0px
auto
;
padding-top
:
15px
;
font-size
:
11px
;
color
:
#666
;
line-height
:
20px
;
border-top
:
1px
solid
#bfbfbf
;
clear
:
both
;}
#footer
span
{
float
:
right
;}
\ No newline at end of file
...
...
trunk/research/community/static-dir/tencent.qq.connect/images/login.png
0 → 100755
查看文件 @
cf7b6f2
9.9 KB
trunk/research/community/static-dir/tencent.qq.connect/index.html
0 → 100644
查看文件 @
cf7b6f2
<html>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
/>
<meta
property=
"qc:admins"
content=
"35453715257630661457637577164165323"
/>
<title>
SRS
</title>
<link
href=
"css/style.css"
rel=
"stylesheet"
type=
"text/css"
>
<link
href=
"css/index_black.css"
rel=
"stylesheet"
type=
"text/css"
>
</head>
<body>
<script
type=
"text/javascript"
src=
"js/jquery.js"
></script>
<script
type=
"text/javascript"
src=
"conf.js"
></script>
<div
id=
"banner"
>
<div
id=
"login"
style=
"padding-top:20px;text-align:center;"
></div>
</div>
<script
type=
"text/javascript"
>
document
.
title
=
get_system_title
();
function
require_login
(){
// 应用的APPID
var
appID
=
get_qq_oauth_app_id
();
// 成功授权后的回调地址
var
redirectURI
=
get_qq_oauth_redirect_url
();
// 透传的状态: check, user
var
state
=
"check"
;
var
path
=
'https://graph.qq.com/oauth2.0/authorize?'
;
var
queryParams
=
[
'response_type=token'
,
'client_id='
+
appID
,
'redirect_uri='
+
encodeURI
(
redirectURI
),
'state='
+
state
,
'scope='
+
'get_user_info'
,
];
var
query
=
queryParams
.
join
(
'&'
);
var
url
=
path
+
query
;
//console.log(url);
$
(
"#login"
).
empty
();
$
(
"#login"
).
append
(
"<div style='margin-bottom:40px;margin-top:30px;'>Welcome to "
+
get_system_title
()
+
"!</div>"
);
$
(
"#login"
).
append
(
"<a href='"
+
url
+
"'><img src='images/login.png'/></a>"
);
//window.location.href = url;
}
if
(
enable_auth
()){
require_login
();
}
else
{
$
(
"#login"
).
html
(
"<div style='margin-bottom:20px;'>Welcome to "
+
get_system_title
()
+
"!</div>"
);
}
</script>
<div
id=
"footer"
>
<span>
Copyright © 2013-2014 SRS,保留所有权利
</span>
Email: winlin@vip.126.com
<br/>
<span>
京ICP备12047633号
</span>
</div>
</body>
</html>
...
...
trunk/research/community/static-dir/tencent.qq.connect/js/jquery.js
0 → 100755
查看文件 @
cf7b6f2
此 diff 太大无法显示。
trunk/research/community/static-dir/tencent.qq.connect/login.html
0 → 100644
查看文件 @
cf7b6f2
<html>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
/>
<title>
SRS
</title>
<link
href=
"css/style.css"
rel=
"stylesheet"
type=
"text/css"
>
<link
href=
"css/index_black.css"
rel=
"stylesheet"
type=
"text/css"
>
</head>
<body>
<script
type=
"text/javascript"
src=
"js/jquery.js"
></script>
<script
type=
"text/javascript"
src=
"conf.js"
></script>
<div
id=
"banner"
>
<div
id=
"login"
style=
"padding-top:20px;text-align:center;"
></div>
</div>
<script
type=
"text/javascript"
>
document
.
title
=
get_system_title
();
function
require_login
(){
// 应用的APPID
var
appID
=
get_qq_oauth_app_id
();
// 成功授权后的回调地址
var
redirectURI
=
get_qq_oauth_redirect_url
();
// 透传的状态: check, user
var
state
=
"user"
;
var
path
=
'https://graph.qq.com/oauth2.0/authorize?'
;
var
queryParams
=
[
'response_type=token'
,
'client_id='
+
appID
,
'redirect_uri='
+
encodeURI
(
redirectURI
),
'state='
+
state
,
'scope='
+
'get_user_info'
,
];
var
query
=
queryParams
.
join
(
'&'
);
var
url
=
path
+
query
;
//console.log(url);
$
(
"#login"
).
empty
();
$
(
"#login"
).
append
(
"<div style='margin-bottom:40px;margin-top:30px;'>Welcome to "
+
get_system_title
()
+
"!</div>"
);
$
(
"#login"
).
append
(
"<a href='"
+
url
+
"'><img src='images/login.png'/></a>"
);
//window.location.href = url;
}
if
(
enable_auth
()){
require_login
();
}
else
{
$
(
"#login"
).
html
(
"<div style='margin-bottom:20px;'>Welcome to "
+
get_system_title
()
+
"!</div>"
);
}
</script>
<div
id=
"footer"
>
<span>
Copyright © 2013-2014 SRS,保留所有权利
</span>
Email: winlin@vip.126.com
<br/>
<span>
京ICP备12047633号
</span>
</div>
</body>
</html>
...
...
trunk/research/community/static-dir/ui/auth.html
0 → 100644
查看文件 @
cf7b6f2
<!DOCTYPE html>
<html>
<head>
<title>
SRS
</title>
</head>
<body>
<h1>
Welcome to
<a
href=
"http://182.92.80.26:8085/srs/releases/index.html"
>
SRS
</a>
!
</h1>
</body>
</html>
...
...
请
注册
或
登录
后发表评论