Commit f8b73d0b authored by 神楽坂玲奈's avatar 神楽坂玲奈

test

parent 68488a3c
...@@ -26,8 +26,8 @@ room = _.string.ltrim(url.attr('path'), '/').split('$') ...@@ -26,8 +26,8 @@ room = _.string.ltrim(url.attr('path'), '/').split('$')
room = { room = {
name: decodeURIComponent room[0] name: decodeURIComponent room[0]
password: decodeURIComponent room[1] password: decodeURIComponent room[1] if room[1]
private: url.param('private') _private: url.param('private')
server: { server: {
ip: url.attr('host') ip: url.attr('host')
port: url.attr('port') port: url.attr('port')
...@@ -39,7 +39,7 @@ $('#name').html room.name ...@@ -39,7 +39,7 @@ $('#name').html room.name
if room.password if room.password
$('#show_password').html room.password $('#show_password').html room.password
$('#show_password_wrapper').show() $('#show_password_wrapper').show()
else if room.private else if room._private
$('#input_password').change -> $('#input_password').change ->
room.password = @value room.password = @value
$('#input_password_wrapper').show() $('#input_password_wrapper').show()
......
...@@ -36,8 +36,8 @@ ...@@ -36,8 +36,8 @@
room = { room = {
name: decodeURIComponent(room[0]), name: decodeURIComponent(room[0]),
password: decodeURIComponent(room[1]), password: room[1] ? decodeURIComponent(room[1]) : void 0,
"private": url.param('private'), _private: url.param('private'),
server: { server: {
ip: url.attr('host'), ip: url.attr('host'),
port: url.attr('port'), port: url.attr('port'),
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
if (room.password) { if (room.password) {
$('#show_password').html(room.password); $('#show_password').html(room.password);
$('#show_password_wrapper').show(); $('#show_password_wrapper').show();
} else if (room["private"]) { } else if (room._private) {
$('#input_password').change(function() { $('#input_password').change(function() {
return room.password = this.value; return room.password = this.value;
}); });
......
...@@ -86,7 +86,9 @@ ...@@ -86,7 +86,9 @@
<script id="server_template" type="text/x-jquery-tmpl"> <script id="server_template" type="text/x-jquery-tmpl">
<option value="${id}" selected="selected">${name}</option> <option value="${id}" selected="selected">${name}</option>
</script> </script>
<script id="test" type="text/x-jquery-tmpl">
<!--# include virtual="/robots.txt" -->
</script>
</head> </head>
<body> <body>
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
result += '$' + password result += '$' + password
result result
#127.0.0.1:8087/test
@mycard.room_string = (ip,port,room,username,password)-> @mycard.room_string = (ip,port,room,username,password)->
result = '' result = ''
if username if username
...@@ -27,10 +28,11 @@ ...@@ -27,10 +28,11 @@
result += ip + ':' + port + '/' + encodeURIComponent(room) result += ip + ':' + port + '/' + encodeURIComponent(room)
result result
#http://my-card.in/rooms/127.0.0.1:8087/test
@mycard.room_url = (ip,port,room,username,password)-> @mycard.room_url = (ip,port,room,username,password)->
result = 'http://my-card.in/rooms/' + room_string(ip,port,room,username,password) result = 'http://my-card.in/rooms/' + room_string(ip,port,room,username,password)
#mycard://127.0.0.1:8087/test
@mycard.room_url_mycard = (ip,port,room,username,password)-> @mycard.room_url_mycard = (ip,port,room,username,password)->
result = 'mycard://' + room_string(ip,port,room,username,password) result = 'mycard://' + room_string(ip,port,room,username,password)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment