コード例 #1
0
ファイル: drawing.php プロジェクト: jorzhikgit/bingo
<?php

require_once "../l18n.php";
l18n::set_path('../lang/');
header('Content-Type: application/javascript; charset=utf-8');
?>
$(document).ready(function () {
    $(".noJs").hide();

    var lastNumber = 0;
    var verification = 0;
    var drawingInProgess = false;

    function init() {
        $.getJSON("json.php?action=gamestatus", function (data) {
            if (data.status) {
                switch (data.gamestatus) {
                    case "notStarted":
                        $("#modal").html('<h2><?php 
__('drawing.notStarted', 'Not started');
?>
</h2><div>' +
                            '<label><?php 
__('drawing.presenter', 'Presenter');
?>
: <input type="text" id="presenter">' +
                            '</label><br /><label><?php 
__('drawing.producer', 'Producer');
?>
: ' +
                            '<input type="text" id="producer"></label><p>' +
コード例 #2
0
ファイル: l18n.php プロジェクト: jorzhikgit/bingo
 public static function set_lang($langcode)
 {
     self::$langcode = $langcode;
 }