This commit is contained in:
Tipx-L 2023-10-04 00:49:59 -07:00
parent 055ab0af58
commit 882af5c6f9
3 changed files with 27528 additions and 414 deletions

27046
game/core-js-bundle.js Normal file

File diff suppressed because it is too large Load Diff

View File

@ -115,7 +115,10 @@
updateURL:'https://raw.githubusercontent.com/libccy/noname', updateURL:'https://raw.githubusercontent.com/libccy/noname',
mirrorURL:'https://raw.fgit.cf/libccy/noname', mirrorURL:'https://raw.fgit.cf/libccy/noname',
hallURL:'47.99.105.222', hallURL:'47.99.105.222',
assetURL:'', assetURL:(()=>{
const nonameInited=localStorage.getItem('noname_inited');
return typeof nonameInited=='string'&&nonameInited!=='nodejs'?nonameInited:'';
})(),
changeLog:[], changeLog:[],
updates:[], updates:[],
canvasUpdates:[], canvasUpdates:[],
@ -8535,112 +8538,6 @@
return get.is.sameNature(natures,nature); return get.is.sameNature(natures,nature);
} }
}); });
if (!('includes' in Array.prototype)) {
Object.defineProperty(Array.prototype, 'includes', {
enumerable: false,
configurable: true,
writable: true,
value: function (searchElement, fromIndex) {
if (this == null) {
throw new TypeError('"this" is null or not defined');
}
var o = Object(this);
var len = o.length >>> 0;
if (len === 0) {
return false;
}
var n = fromIndex | 0;
var k = Math.max(n >= 0 ? n : len - Math.abs(n), 0);
function sameValueZero(x, y) {
return x === y || (typeof x === 'number' && typeof y === 'number' && isNaN(x) && isNaN(y));
}
while (k < len) {
if (sameValueZero(o[k], searchElement)) {
return true;
}
k++;
}
return false;
}
});
}
if(!('flat' in Array.prototype)){
Object.defineProperty(Array.prototype, "flat", {
configurable:true,
enumerable:false,
writable:true,
value:function(depth){
if(typeof depth!='number') depth=1;
const arr=[];
for(let i=0;i<this.length;i++){
let obj=this[i];
if(depth>0&&Array.isArray(obj)){
obj.flat(depth-1).forEach(function(item){
arr.push(item)
});
}
else{
arr.push(obj);
}
}
return arr;
}
});
}
if (!("allSettled" in Promise)){
Object.defineProperty(Promise, "allSettled", {
configurable:true,
enumerable:false,
writable:true,
value:function allSettled(ary){
const Promise = this;
return new Promise((resolve, reject) => {
// if (Object.prototype.toString.call(arr) != "[object Array]")
if (!Array.isArray(ary))
return reject(new TypeError(`${typeof arr} ${ary} is not iterable(cannot read property Symbol(Symbol.iterator))`));
let args = Array.prototype.slice.call(ary);
if (args.length == 0) return resolve([]);
let arrCount = args.length;
function resolvePromise(index, value) {
if (typeof value == "object") {
var then = value.then;
if (typeof then == "function") {
then.call(value, (val) => {
args[index] = { status: "fulfilled", value: val };
if (--arrCount == 0) resolve(args);
}, (e) => {
args[index] = { status: "rejected", reason: e };
if (--arrCount == 0) resolve(args);
});
}
}
}
for (let i = 0; i < args.length; ++i)
resolvePromise(i, args[i]);
});
}
});
}
if(!Object.values){
Object.defineProperty(Object, 'values', {
configurable:true,
enumerable:false,
writable:true,
value:function(obj){
if(obj!== Object(obj)) {
throw new TypeError('Object.values called on a non-object');
}
var values=[];
for(var key in obj) {
if(obj.hasOwnProperty(key)){
values.push(obj[key]);
}
}
return values;
}
});
}
window.onkeydown=function(e){ window.onkeydown=function(e){
if(!ui.menuContainer||!ui.menuContainer.classList.contains('hidden')){ if(!ui.menuContainer||!ui.menuContainer.classList.contains('hidden')){
if(e.keyCode==116||((e.ctrlKey||e.metaKey)&&e.keyCode==82)){ if(e.keyCode==116||((e.ctrlKey||e.metaKey)&&e.keyCode==82)){
@ -8807,39 +8704,39 @@
if(typeof line=='number'&&(typeof game.readFile=='function'||location.origin!='file://')){ if(typeof line=='number'&&(typeof game.readFile=='function'||location.origin!='file://')){
function createShowCode(lines){ function createShowCode(lines){
let showCode=''; let showCode='';
if(lines.length>=10){ if(lines.length>=10){
if(line>4){ if(line>4){
for(let i=line-5;i<line+6&&i<lines.length;i++){ for(let i=line-5;i<line+6&&i<lines.length;i++){
showCode+=`${i+1}| ${line==i+1?'⚠️':''}${lines[i]}\n`; showCode+=`${i+1}| ${line==i+1?'⚠️':''}${lines[i]}\n`;
} }
}else{ }else{
for(let i=0;i<line+6&&i<lines.length;i++){ for(let i=0;i<line+6&&i<lines.length;i++){
showCode+=`${i+1}| ${line==i+1?'⚠️':''}${lines[i]}\n`; showCode+=`${i+1}| ${line==i+1?'⚠️':''}${lines[i]}\n`;
} }
} }
}else{ }else{
showCode=lines.map((_line,i)=>`${i+1}| ${line==i+1?'⚠️':''}${_line}\n`).toString(); showCode=lines.map((_line,i)=>`${i+1}| ${line==i+1?'⚠️':''}${_line}\n`).toString();
} }
return showCode; return showCode;
} }
//协议名须和html一致(网页端防跨域)且文件是js //协议名须和html一致(网页端防跨域)且文件是js
if (typeof src=='string'&&src.startsWith(location.protocol)&&src.endsWith('.js')){ if (typeof src=='string'&&src.startsWith(location.protocol)&&src.endsWith('.js')){
//获取代码 //获取代码
const codes=lib.init.reqSync('local:'+decodeURI(src).replace(lib.assetURL,'').replace(winPath,'')); const codes=lib.init.reqSync('local:'+decodeURI(src).replace(lib.assetURL,'').replace(winPath,''));
const lines=codes.split("\n"); const lines=codes.split("\n");
str+='\n'+createShowCode(lines); str+='\n'+createShowCode(lines);
str+='\n-------------'; str+='\n-------------';
} }
//解析parsex里的content fun内容(通常是技能content) //解析parsex里的content fun内容(通常是技能content)
else if(err&&err.stack&&err.stack.split('\n')[1].trim().startsWith('at Object.eval [as content]')){ else if(err&&err.stack&&err.stack.split('\n')[1].trim().startsWith('at Object.eval [as content]')){
const codes=_status.event.content; const codes=_status.event.content;
if(typeof codes=='function'){ if(typeof codes=='function'){
const lines=codes.toString().split("\n"); const lines=codes.toString().split("\n");
str+='\n'+createShowCode(lines); str+='\n'+createShowCode(lines);
str+='\n-------------'; str+='\n-------------';
} }
} }
} }
if(err&&err.stack) str+='\n'+decodeURI(err.stack).replace(new RegExp(lib.assetURL,'g'),'').replace(new RegExp(winPath,'g'),''); if(err&&err.stack) str+='\n'+decodeURI(err.stack).replace(new RegExp(lib.assetURL,'g'),'').replace(new RegExp(winPath,'g'),'');
alert(str); alert(str);
window.ea=Array.from(arguments); window.ea=Array.from(arguments);
@ -8874,7 +8771,6 @@
else if(ua.includes('iphone')||ua.includes('ipad')||ua.includes('macintosh')){ else if(ua.includes('iphone')||ua.includes('ipad')||ua.includes('macintosh')){
lib.device='ios'; lib.device='ios';
} }
lib.assetURL=noname_inited;
} }
if(lib.assetURL.includes('com.widget.noname.qingyao')){ if(lib.assetURL.includes('com.widget.noname.qingyao')){
@ -47525,7 +47421,7 @@
window.extension={}; window.extension={};
fetch(`${extensionURL}catalog.js`,{ fetch(`${extensionURL}catalog.js`,{
referrerPolicy:'no-referrer' referrerPolicy:'no-referrer'
}).then(value=>value.text()).then(eval).then(loaded).catch(reason=>{ }).then(response=>response.text()).then(eval).then(loaded).catch(reason=>{
console.log(reason); console.log(reason);
delete window.extension; delete window.extension;
loading.innerHTML='连接失败:'+(reason instanceof Error?reason.message:String(reason)); loading.innerHTML='连接失败:'+(reason instanceof Error?reason.message:String(reason));
@ -60962,5 +60858,11 @@
}, },
get:get get:get
}; };
lib.init.init(); if('__core-js_shared__' in window) lib.init.init();
else{
const coreJSBundle=document.createElement('script');
coreJSBundle.onerror=coreJSBundle.onload=lib.init.init;
coreJSBundle.src=`${lib.assetURL}game/core-js-bundle.js`;
document.head.appendChild(coreJSBundle);
}
} }

View File

@ -1,348 +1,514 @@
#arena.stone>.player.minskin[data-position='4']{top:calc(100% - 305px);left:calc(100% - 120px);} #arena.stone>.player.minskin[data-position='4'] {
#arena.stone>.card[data-position='4']{top:calc(100% - 297px);left:calc(100% - 112px);} top: calc(100% - 305px);
#arena.stone>.popup[data-position='4']{top:calc(100% - 340px);left:calc(100% - 112px);} left: calc(100% - 120px);
#arena.stone>.player.minskin[data-position='6']{top:calc(100% - 305px);left:calc(100% - 260px);}
#arena.stone>.card[data-position='6']{top:calc(100% - 297px);left:calc(100% - 252px);}
#arena.stone>.popup[data-position='6']{top:calc(100% - 340px);left:calc(100% - 252px);}
#arena.stone>.player.minskin[data-position='7']{top:calc(100% - 305px);left:140px;}
#arena.stone>.card[data-position='7']{top:calc(100% - 297px);left:148px;}
#arena.stone>.popup[data-position='7']{top:calc(100% - 340px);left:148px;}
#arena.stone>.player.minskin[data-position='5']{top:calc(100% - 305px);left:0;}
#arena.stone>.card[data-position='5']{top:calc(100% - 297px);left:8px;}
#arena.stone>.popup[data-position='5']{top:calc(100% - 340px);left:8px;}
#arena.stone>.player.minskin[data-position='9']{top:30px;left:calc(100% - 120px);}
#arena.stone>.card[data-position='9']{top:38px;left:calc(100% - 112px);}
#arena.stone>.popup[data-position='9']{top:160px;left:calc(100% - 112px);}
#arena.stone>.player.minskin[data-position='11']{top:10px;left:calc(100% - 260px);}
#arena.stone>.card[data-position='11']{top:18px;left:calc(100% - 252px);}
#arena.stone>.popup[data-position='11']{top:140px;left:calc(100% - 252px);}
#arena.stone>.player.minskin[data-position='10']{top:10px;left:140px;}
#arena.stone>.card[data-position='10']{top:18px;left:148px;}
#arena.stone>.popup[data-position='10']{top:140px;left:148px;}
#arena.stone>.player.minskin[data-position='8']{top:30px;left:0;}
#arena.stone>.card[data-position='8']{top:38px;left:8px;}
#arena.stone>.popup[data-position='8']{top:160px;left:8px;}
#arena:not(.chess).mobile>.player[data-position='0']>.name{
top:30px;
}
#arena .player>.name{
top:36px;
}
#arena.slim_player .player>.name{
top:33px;
}
#arena .player.linked>.name{
transform: rotate(90deg) translate(120px,-96px);
}
#arena .player.linked>.name.name2{
transform: rotate(90deg) translate(98px,-31px);
} }
#arena.oldlayout .player.linked>.name{ #arena.stone>.card[data-position='4'] {
transform: none !important; top: calc(100% - 297px);
} left: calc(100% - 112px);
#arena.oldlayout .player.linked>.name.name2{
transform: none !important;
} }
.player.minskin .judges{ #arena.stone>.popup[data-position='4'] {
top:14px; top: calc(100% - 340px);
left: calc(100% - 112px);
} }
.player>.identity.menubutton.round{
padding: 0; #arena.stone>.player.minskin[data-position='6'] {
transform: scale(1.2) translate(-2px,2px); top: calc(100% - 305px);
left: calc(100% - 260px);
} }
.card .wunature{
top:74px; #arena.stone>.card[data-position='6'] {
left:6px; top: calc(100% - 297px);
right: auto; left: calc(100% - 252px);
} }
#arena.stone>.popup[data-position='6'] {
top: calc(100% - 340px);
left: calc(100% - 252px);
}
#arena.stone>.player.minskin[data-position='7'] {
top: calc(100% - 305px);
left: 140px;
}
#arena.stone>.card[data-position='7'] {
top: calc(100% - 297px);
left: 148px;
}
#arena.stone>.popup[data-position='7'] {
top: calc(100% - 340px);
left: 148px;
}
#arena.stone>.player.minskin[data-position='5'] {
top: calc(100% - 305px);
left: 0;
}
#arena.stone>.card[data-position='5'] {
top: calc(100% - 297px);
left: 8px;
}
#arena.stone>.popup[data-position='5'] {
top: calc(100% - 340px);
left: 8px;
}
#arena.stone>.player.minskin[data-position='9'] {
top: 30px;
left: calc(100% - 120px);
}
#arena.stone>.card[data-position='9'] {
top: 38px;
left: calc(100% - 112px);
}
#arena.stone>.popup[data-position='9'] {
top: 160px;
left: calc(100% - 112px);
}
#arena.stone>.player.minskin[data-position='11'] {
top: 10px;
left: calc(100% - 260px);
}
#arena.stone>.card[data-position='11'] {
top: 18px;
left: calc(100% - 252px);
}
#arena.stone>.popup[data-position='11'] {
top: 140px;
left: calc(100% - 252px);
}
#arena.stone>.player.minskin[data-position='10'] {
top: 10px;
left: 140px;
}
#arena.stone>.card[data-position='10'] {
top: 18px;
left: 148px;
}
#arena.stone>.popup[data-position='10'] {
top: 140px;
left: 148px;
}
#arena.stone>.player.minskin[data-position='8'] {
top: 30px;
left: 0;
}
#arena.stone>.card[data-position='8'] {
top: 38px;
left: 8px;
}
#arena.stone>.popup[data-position='8'] {
top: 160px;
left: 8px;
}
#arena:not(.chess).mobile>.player[data-position='0']>.name {
top: 30px;
}
#arena .player>.name {
top: 36px;
}
#arena.slim_player .player>.name {
top: 33px;
}
#arena .player.linked>.name {
transform: rotate(90deg) translate(120px, -96px);
}
#arena .player.linked>.name.name2 {
transform: rotate(90deg) translate(98px, -31px);
}
#arena.oldlayout .player.linked>.name {
transform: none !important;
}
#arena.oldlayout .player.linked>.name.name2 {
transform: none !important;
}
.player.minskin .judges {
top: 14px;
}
.player>.identity.menubutton.round {
padding: 0;
transform: scale(1.2) translate(-2px, 2px);
}
.card .wunature {
top: 74px;
left: 6px;
right: auto;
}
/* .player .equips{ */ /* .player .equips{ */
/*z-index: 4;*/ /*z-index: 4;*/
/* } */ /* } */
#arena:not(.chess).mobile .player[data-position='0']:not(.minskin)>.identity{ #arena:not(.chess).mobile .player[data-position='0']:not(.minskin)>.identity {
left: 100px; left: 100px;
top: -7px; top: -7px;
} }
#deck-builder{ #deck-builder {
overflow: hidden; overflow: hidden;
} }
#deck-builder>.shadowed.list{
width: 200px; #deck-builder>.shadowed.list {
height: 100%; width: 200px;
right: 0; height: 100%;
top:0; right: 0;
border-radius: 0px; top: 0;
transform: translateX(200px); border-radius: 0px;
opacity: 0; transform: translateX(200px);
opacity: 0;
} }
#deck-builder.shown>.shadowed.list{
transform: none; #deck-builder.shown>.shadowed.list {
opacity: 1; transform: none;
opacity: 1;
} }
#deck-builder>.shadowed.list>.menubutton.large.create{
position: absolute; #deck-builder>.shadowed.list>.menubutton.large.create {
bottom: 10px; position: absolute;
left: auto; bottom: 10px;
right: 10px; left: auto;
margin: 0; right: 10px;
padding: 0; margin: 0;
width: 180px; padding: 0;
height: 50px; width: 180px;
font-size: 36px; height: 50px;
line-height: 50px; font-size: 36px;
z-index: 2; line-height: 50px;
z-index: 2;
} }
#deck-builder>.shadowed.list>.list-container{
width:100%; #deck-builder>.shadowed.list>.list-container {
left:0; width: 100%;
height: calc(100% - 60px); left: 0;
overflow-y: scroll; height: calc(100% - 60px);
overflow-x: visible; overflow-y: scroll;
text-align: left; overflow-x: visible;
text-align: left;
} }
#deck-builder>.shadowed.list>.list-container:not(.deck){
z-index: 1; #deck-builder>.shadowed.list>.list-container:not(.deck) {
z-index: 1;
} }
#deck-builder>.shadowed.list>.list-container.deck{
pointer-events: none; #deck-builder>.shadowed.list>.list-container.deck {
opacity: 0; pointer-events: none;
opacity: 0;
} }
#deck-builder>.shadowed.list>.list-container.deck.shown{
pointer-events: auto; #deck-builder>.shadowed.list>.list-container.deck.shown {
opacity: 1; pointer-events: auto;
opacity: 1;
} }
#deck-builder>.shadowed.list>.list-container.deck>.card{
zoom:0.8; #deck-builder>.shadowed.list>.list-container.deck>.card {
margin-bottom: 15px; zoom: 0.8;
margin-top: 0; margin-bottom: 15px;
transition: all 0s; margin-top: 0;
transition: all 0s;
} }
#deck-builder>.shadowed.list>.list-container.deck>.card:nth-child(2n+1){
margin-left: 15px; #deck-builder>.shadowed.list>.list-container.deck>.card:nth-child(2n+1) {
margin-left: 15px;
} }
#deck-builder>.shadowed.list>.list-container.deck>.card:nth-child(2n){
margin-left: 7px; #deck-builder>.shadowed.list>.list-container.deck>.card:nth-child(2n) {
margin-left: 7px;
} }
#deck-builder>.shadowed.list>.list-container.deck>.card:first-child, #deck-builder>.shadowed.list>.list-container.deck>.card:first-child,
#deck-builder>.shadowed.list>.list-container.deck>.card:first-child+div{ #deck-builder>.shadowed.list>.list-container.deck>.card:first-child+div {
margin-top: 15px; margin-top: 15px;
} }
.deckitem{
position: relative; .deckitem {
width: 170px; position: relative;
margin-left: 15px; width: 170px;
margin-right: 0; margin-left: 15px;
padding-left: 0; margin-right: 0;
padding-right: 0; padding-left: 0;
padding-top: 5px; padding-right: 0;
padding-bottom: 5px; padding-top: 5px;
margin-top: 15px; padding-bottom: 5px;
margin-bottom: 0px; margin-top: 15px;
text-align: left; margin-bottom: 0px;
font-size:24px; text-align: left;
line-height:30px; font-size: 24px;
font-family:'xinwei'; line-height: 30px;
border-radius: 40px 4px 4px 40px; font-family: 'xinwei';
background-size: cover; border-radius: 40px 4px 4px 40px;
white-space: nowrap; background-size: cover;
transition: all 0s; white-space: nowrap;
transition: all 0s;
} }
#window:not(.nopointer) .deckitem, #window:not(.nopointer) .deckitem,
#window:not(.nopointer) #deck-builder>.shadowed.list>.menubutton.large.create, #window:not(.nopointer) #deck-builder>.shadowed.list>.menubutton.large.create,
#window:not(.nopointer) #deck-builder>.controls>div:not(*:last-child){ #window:not(.nopointer) #deck-builder>.controls>div:not(*:last-child) {
cursor: pointer; cursor: pointer;
} }
.dialog .deckitem{
margin-left: 8px; .dialog .deckitem {
margin-right: 9px; margin-left: 8px;
margin-right: 9px;
} }
.deckitem.random{
border-radius: 4px; .deckitem.random {
text-align: center; border-radius: 4px;
text-align: center;
} }
.deckitem.random>span{
margin-left: 0; .deckitem.random>span {
margin-left: 0;
} }
.deckitem:last-child{
margin-bottom: 15px; .deckitem:last-child {
margin-bottom: 15px;
} }
.deckitem>span{
margin-left: 46px; .deckitem>span {
margin-left: 46px;
} }
.deckitem>.menubutton.round{
position: absolute; .deckitem>.menubutton.round {
left: -1px; position: absolute;
top: -2px; left: -1px;
width: 34px; top: -2px;
height: 34px; width: 34px;
height: 34px;
} }
#deck-builder>.shadowed.career{
width: 240px; #deck-builder>.shadowed.career {
height: 240px; width: 240px;
right: 220px; height: 240px;
bottom: 20px; right: 220px;
opacity: 0; bottom: 20px;
transform: scale(0) translateX(300px); opacity: 0;
transform-origin: right bottom; transform: scale(0) translateX(300px);
transition-duration: 0.3s; transform-origin: right bottom;
z-index: 8; transition-duration: 0.3s;
z-index: 8;
} }
#deck-builder>.shadowed.career.shown{
transform: scale(1) translateX(0); #deck-builder>.shadowed.career.shown {
opacity: 1; transform: scale(1) translateX(0);
opacity: 1;
} }
#deck-builder>.shadowed.career>div{
width: 80px; #deck-builder>.shadowed.career>div {
height: 80px; width: 80px;
margin: 0; height: 80px;
padding: 0; margin: 0;
position: relative; padding: 0;
display: inline-block; position: relative;
display: inline-block;
} }
#deck-builder>.shadowed.career>div>.menubutton.round{
left: 15px; #deck-builder>.shadowed.career>div>.menubutton.round {
top: 5px; left: 15px;
top: 5px;
} }
#deck-builder>.shadowed.career>div>.text{
font-size: 12px; #deck-builder>.shadowed.career>div>.text {
width: 100%; font-size: 12px;
text-align: center; width: 100%;
top: 58px; text-align: center;
top: 58px;
} }
#deck-builder>.dialog.fixed{
left: auto; #deck-builder>.dialog.fixed {
right: 240px; left: auto;
width: calc(100% - 280px); right: 240px;
/*opacity: 0;*/ width: calc(100% - 280px);
animation: none; /*opacity: 0;*/
-webkit-animation:none; animation: none;
/*transform: scale(0.8);*/ -webkit-animation: none;
/*pointer-events: none;*/ /*transform: scale(0.8);*/
/*-webkit-animation:dialog_start2 0.5s;*/ /*pointer-events: none;*/
transition: all 0.5s; /*-webkit-animation:dialog_start2 0.5s;*/
transition: all 0.5s;
} }
#deck-builder:not(.shown)>.dialog.fixed{
opacity: 0; #deck-builder:not(.shown)>.dialog.fixed {
transform: scale(0.8); opacity: 0;
pointer-events: none; transform: scale(0.8);
pointer-events: none;
} }
#deck-builder>.dialog.fixed.shown{
opacity: 1; #deck-builder>.dialog.fixed.shown {
transform: scale(1); opacity: 1;
pointer-events: auto; transform: scale(1);
pointer-events: auto;
} }
#deck-builder>.controls{
opacity: 0; #deck-builder>.controls {
height: 50px; opacity: 0;
width: calc(100% - 200px); height: 50px;
bottom: 10px; width: calc(100% - 200px);
left: 0; bottom: 10px;
text-align: right; left: 0;
z-index: 9; text-align: right;
pointer-events: none; z-index: 9;
pointer-events: none;
} }
#deck-builder>.controls>div{
position: relative; #deck-builder>.controls>div {
margin-top:5px; position: relative;
margin-left: 5px; margin-top: 5px;
margin-right: 5px; margin-left: 5px;
margin-right: 5px;
} }
#deck-builder>.controls>.card-count{
position: absolute; #deck-builder>.controls>.card-count {
width: 100px; position: absolute;
height: 100%; width: 100px;
left: calc(50% - 50px); height: 100%;
text-align: center; left: calc(50% - 50px);
font-family: 'xinwei'; text-align: center;
font-size: 24px; font-family: 'xinwei';
line-height: 50px; font-size: 24px;
margin: 0; line-height: 50px;
margin: 0;
} }
#deck-builder>.controls>div:last-child{
margin-right: 40px; #deck-builder>.controls>div:last-child {
white-space: nowrap; margin-right: 40px;
-webkit-user-select: text; white-space: nowrap;
user-select: text;
-webkit-user-select: text;
} }
#deck-builder>.controls.shown{
opacity: 1; #deck-builder>.controls.shown {
pointer-events: auto; opacity: 1;
pointer-events: auto;
} }
#arena>.player.stone_deck{
transform: scale(1) translateX(100px); #arena>.player.stone_deck {
opacity: 0; transform: scale(1) translateX(100px);
transition: all 0.5s; opacity: 0;
left: calc(5% + 50px); transition: all 0.5s;
top:calc(50% - 90px); left: calc(5% + 50px);
top: calc(50% - 90px);
} }
#arena>.player.stone_deck.shown{
transform: scale(0.8); #arena>.player.stone_deck.shown {
opacity: 1; transform: scale(0.8);
opacity: 1;
} }
#arena>.player.stone_deck.shown.removing{
transform: scale(0.6) translateX(-100px); #arena>.player.stone_deck.shown.removing {
transform: scale(0.6) translateX(-100px);
} }
#arena>.player.stone_deck>div:not(.avatar):not(.avatar2){
display: none !important; #arena>.player.stone_deck>div:not(.avatar):not(.avatar2) {
display: none !important;
} }
/*#arena>.skillbar>.skillbartext:hover{ /*#arena>.skillbar>.skillbartext:hover{
opacity: 1; opacity: 1;
}*/ }*/
@keyframes skillbarglow{ @keyframes skillbarglow {
0%{box-shadow: rgba(0, 0, 0, 0.1) 0 0 0 1px, rgba(255, 0, 0, 0.4) 0 0 5px} 0% {
50%{box-shadow: rgba(0, 0, 0, 0.2) 0 0 0 1px,rgba(255, 0, 0, 0.4) 0 0 5px, box-shadow: rgba(0, 0, 0, 0.1) 0 0 0 1px, rgba(255, 0, 0, 0.4) 0 0 5px
rgba(255, 0, 0, 0.4) 0 0 12px, rgba(255, 0, 0, 1) 0 0 30px, rgba(255, 0, 0, 0.2) 0 0 30px} }
100%{box-shadow: rgba(0, 0, 0, 0.1) 0 0 0 1px, rgba(255, 0, 0, 0.4) 0 0 5px}
} 50% {
@-webkit-keyframes skillbarglow{ box-shadow: rgba(0, 0, 0, 0.2) 0 0 0 1px, rgba(255, 0, 0, 0.4) 0 0 5px,
0%{box-shadow: rgba(0, 0, 0, 0.1) 0 0 0 1px, rgba(255, 0, 0, 0.4) 0 0 5px} rgba(255, 0, 0, 0.4) 0 0 12px, rgba(255, 0, 0, 1) 0 0 30px, rgba(255, 0, 0, 0.2) 0 0 30px
50%{box-shadow: rgba(0, 0, 0, 0.2) 0 0 0 1px,rgba(255, 0, 0, 0.4) 0 0 5px, }
rgba(255, 0, 0, 0.4) 0 0 12px, rgba(255, 0, 0, 1) 0 0 30px, rgba(255, 0, 0, 0.2) 0 0 30px}
100%{box-shadow: rgba(0, 0, 0, 0.1) 0 0 0 1px, rgba(255, 0, 0, 0.4) 0 0 5px} 100% {
box-shadow: rgba(0, 0, 0, 0.1) 0 0 0 1px, rgba(255, 0, 0, 0.4) 0 0 5px
}
} }
div[data-career='mage']{ @-webkit-keyframes skillbarglow {
background-image: url('../../image/mode/stone/career/mage.png'); 0% {
background-size:cover; box-shadow: rgba(0, 0, 0, 0.1) 0 0 0 1px, rgba(255, 0, 0, 0.4) 0 0 5px
}
50% {
box-shadow: rgba(0, 0, 0, 0.2) 0 0 0 1px, rgba(255, 0, 0, 0.4) 0 0 5px,
rgba(255, 0, 0, 0.4) 0 0 12px, rgba(255, 0, 0, 1) 0 0 30px, rgba(255, 0, 0, 0.2) 0 0 30px
}
100% {
box-shadow: rgba(0, 0, 0, 0.1) 0 0 0 1px, rgba(255, 0, 0, 0.4) 0 0 5px
}
} }
div[data-career='druid']{
background-image: url('../../image/mode/stone/career/druid.png'); div[data-career='mage'] {
background-size:cover; background-image: url('../../image/mode/stone/career/mage.png');
background-size: cover;
} }
div[data-career='hunter']{
background-image: url('../../image/mode/stone/career/hunter.png'); div[data-career='druid'] {
background-size:cover; background-image: url('../../image/mode/stone/career/druid.png');
background-size: cover;
} }
div[data-career='shaman']{
background-image: url('../../image/mode/stone/career/shaman.png'); div[data-career='hunter'] {
background-size:cover; background-image: url('../../image/mode/stone/career/hunter.png');
background-size: cover;
} }
div[data-career='paladin']{
background-image: url('../../image/mode/stone/career/paladin.png'); div[data-career='shaman'] {
background-size:cover; background-image: url('../../image/mode/stone/career/shaman.png');
background-size: cover;
} }
div[data-career='rogue']{
background-image: url('../../image/mode/stone/career/rogue.png'); div[data-career='paladin'] {
background-size:cover; background-image: url('../../image/mode/stone/career/paladin.png');
background-size: cover;
} }
div[data-career='priest']{
background-image: url('../../image/mode/stone/career/priest.png'); div[data-career='rogue'] {
background-size:cover; background-image: url('../../image/mode/stone/career/rogue.png');
background-size: cover;
} }
div[data-career='warrior']{
background-image: url('../../image/mode/stone/career/warrior.png'); div[data-career='priest'] {
background-size:cover; background-image: url('../../image/mode/stone/career/priest.png');
background-size: cover;
} }
div[data-career='warlock']{
background-image: url('../../image/mode/stone/career/warlock.png'); div[data-career='warrior'] {
background-size:cover; background-image: url('../../image/mode/stone/career/warrior.png');
background-size: cover;
} }
div[data-career='knight']{
background-image: url('../../image/mode/stone/career/knight.png'); div[data-career='warlock'] {
background-size:cover; background-image: url('../../image/mode/stone/career/warlock.png');
background-size: cover;
} }
div[data-career='knight'] {
background-image: url('../../image/mode/stone/career/knight.png');
background-size: cover;
}