93 lines
3.9 KiB
HTML
93 lines
3.9 KiB
HTML
|
|
<!DOCTYPE html> <html lang="en"> <head> <style type="text/css">
|
||
|
|
.topcmm-123flashchat-extension-pop-contents
|
||
|
|
{
|
||
|
|
width: 100%;
|
||
|
|
position: absolute;
|
||
|
|
top: 0px;
|
||
|
|
height: 70px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.topcmm-123flashchat-pop-content-tip
|
||
|
|
{
|
||
|
|
font-family: tahoma;
|
||
|
|
font-size: 12px;
|
||
|
|
margin-top: 15px;
|
||
|
|
text-align: center;
|
||
|
|
width: 100%;
|
||
|
|
overflow: hidden;
|
||
|
|
}
|
||
|
|
|
||
|
|
.topcmm-123flashchat-pop-content-input
|
||
|
|
{
|
||
|
|
height: 32px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.topcmm-123flashchat-btn
|
||
|
|
{
|
||
|
|
bottom: 18px;
|
||
|
|
height: 24px;
|
||
|
|
position: absolute;
|
||
|
|
width: 100%;
|
||
|
|
}
|
||
|
|
</style> <script type="text/javascript" src="../../js/jquery-1.8.3.min.js"></script> <script type="text/javascript">
|
||
|
|
var currentOperateRoom = null;
|
||
|
|
function okClick()
|
||
|
|
{
|
||
|
|
var value = document.getElementById("my_vote_credits_value").value;
|
||
|
|
if (null != window.parent)
|
||
|
|
{
|
||
|
|
if (isNaN(value) || value <= 0)
|
||
|
|
{
|
||
|
|
alertNotice(only_positive_integer_allowed);
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
window.parent.topcmm.trackEvent("SeatExtension", "PopupInputCreditsClickOkBtn");
|
||
|
|
window.parent.onUserGetSeatCreditsInputEnd(value);
|
||
|
|
window.parent.topcmm.closeCustomPopupView();
|
||
|
|
window.parent.onUserGetSeatCreditsInputCancel();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
function alertNotice(msg)
|
||
|
|
{
|
||
|
|
if (window.parent != null)
|
||
|
|
{
|
||
|
|
window.parent.topcmm.notice(msg);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
function getSeatCancel()
|
||
|
|
{
|
||
|
|
if (null != window.parent)
|
||
|
|
{
|
||
|
|
window.parent.topcmm.trackEvent("SeatExtension", "PopupInputCreditsClickCancelBtn");
|
||
|
|
window.parent.onUserGetSeatCreditsInputCancel();
|
||
|
|
window.parent.topcmm.closeCustomPopupView();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
function init()
|
||
|
|
{
|
||
|
|
$("#topcmm-123flashchat-ti").text(bid_for_front_sofa_content);
|
||
|
|
$("#topcmm-123flashchat-confirm").val(btn_confirm);
|
||
|
|
$("#topcmm-123flashchat-cancel").val(btn_cancel);
|
||
|
|
}
|
||
|
|
|
||
|
|
function loadJS()
|
||
|
|
{
|
||
|
|
var lange = window.navigator.language;
|
||
|
|
var langurl = "lang/lang-" + lange + ".js";
|
||
|
|
$.getScript(langurl)
|
||
|
|
.done(function(script, textStatus) {
|
||
|
|
init();
|
||
|
|
})
|
||
|
|
.fail(function(jqxhr, settings, exception) {
|
||
|
|
$.getScript("lang/lang-en-US.js")
|
||
|
|
.done(function(script, textStatus) {
|
||
|
|
init();
|
||
|
|
});
|
||
|
|
});
|
||
|
|
|
||
|
|
currentOperateRoom = window.parent.topcmm.getCurrentRoomId();
|
||
|
|
}
|
||
|
|
</script> </head> <body style="margin:0px; overflow: hidden;" onload="loadJS()"> <div id="modal" style="width: 290px; height: 126px; position: absolute; overflow: hidden;"> <div id="content" class="topcmm-123flashchat-extension-pop-contents"> <div class="topcmm-123flashchat-pop-content-tip" id="topcmm-123flashchat-ti"></div> <div class="topcmm-123flashchat-pop-content-input"><input type="text" id="my_vote_credits_value" style="margin-left: 70px; margin-top: 12px;"></div> </div> <div class="topcmm-123flashchat-btn"> <input id="topcmm-123flashchat-confirm" type="button" value="confirm" style="float: left; margin-left: 60px;" onclick="okClick();"> <input id="topcmm-123flashchat-cancel" type="button" value="cancel" style="margin-right: 60px; float: right;" onclick="getSeatCancel();"> </div> </div> </body> </html>
|