mirror of
https://github.com/KevinMidboe/zoff.git
synced 2026-04-28 18:04:06 +00:00
Onepage working
This commit is contained in:
@@ -48,6 +48,17 @@
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
#channel-load{
|
||||
display:none;
|
||||
position: absolute;
|
||||
top: -8px;
|
||||
background-color:rgba(0,0,0,0);
|
||||
}
|
||||
|
||||
#channel-load-move{
|
||||
background-color: #FFFFFF !important;
|
||||
}
|
||||
|
||||
.rounded{
|
||||
border-radius: 4px;
|
||||
|
||||
2
static/dist/frontpage.min.js
vendored
2
static/dist/frontpage.min.js
vendored
File diff suppressed because one or more lines are too long
4
static/dist/main.min.js
vendored
4
static/dist/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -364,8 +364,8 @@ window.onpopstate = function(e){
|
||||
}
|
||||
|
||||
function onepage_load(){
|
||||
$("#channel-load").css("display", "block");
|
||||
var url_split = window.location.href.split("/");
|
||||
|
||||
if(url_split[3] == "" || url_split[3].substring(0,1) == "#"){
|
||||
$.ajax({
|
||||
url: "php/nochan_content.php",
|
||||
|
||||
@@ -201,6 +201,8 @@ var Nochan = {
|
||||
|
||||
to_channel: function(chan, popstate){
|
||||
|
||||
$("#channel-load").css("display", "block");
|
||||
|
||||
$.ajax({
|
||||
url: chan + "/php/channel.php",
|
||||
success: function(e){
|
||||
@@ -330,6 +332,7 @@ $(".listen-button").click(function(e){
|
||||
//console.log($(".room-namer").attr("placeholder"));
|
||||
if($(".room-namer").val() == ""){
|
||||
e.preventDefault();
|
||||
window.location = "?chan="+$(".room-namer").attr("placeholder");
|
||||
//window.location = "?chan="+
|
||||
Nochan.to_channel($(".room-namer").attr("placeholder"));
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user