Copyright © All rights reserved | This template is made with by Colorlib

Next Big Event:

บทความในหมวด

DATA SOURCE

จัดเก็บข้อมูลการสืบค้น

รวมการสืบค้นข้อมูลก่อนจัดทำบทความ

2022-02-22 Games 209
2022-07-28 Games

2022-02-22

การอ้างอิงเอกสาร

    SweetAlert2

    • เปิดหน้าต่างใหม่เมื่อกดคอนเฟิร์ม ( stackoverflow.com
      swal({
        title: "Are you sure?",
        text: "You redirect in the new window in other page!",
        type: "warning",
        showCancelButton: true,
        confirmButtonClass: "btn-danger",
        confirmButtonText: "Yes, delete it!",
        cancelButtonText: "No, cancel plx!",
        closeOnConfirm: false,
        closeOnCancel: false
      },
      function(isConfirm) {
        if (isConfirm) {
          window.open("https://www.google.com");
        } else {
          window.open("https://www.yahoo.com");
        }
      });

    การป้องกันการแสดงรายชื่อไฟล์ของ Server


    2022-02-23

    ออกแบบ Game Database Mysql

    Select2

    Css - แก้ปัญหา Select2 Box ขนาดไม่พอดีกับรูป

     .select2-selection {
    height: auto !important;
    }

    Css เปลี่ยนสี Select2

    .select2-container--default .select2-selection--single {background-color: #ccc !important;}
    .select2-results {background-color: #ccc !important;}
    .select2-search {background-color: #ccc !important;}
    .select2-search input {background-color: #ccc !important;}

    2022-02-24

    Select2 เพิ่มให้สามารถลบ Option ที่เลือกไว้ได้

    allowClear: true

    2022-02-25

    PHP Sort Score form Array

    function scoreSort($a, $b){
      if($a['score'] == $b['score']) return 0;
      return $a['score'] > $b['score'] ? -1 : 1;
    }
    usort($player_data, 'scoreSort');

    2022-02-28

    scroll-behavior-smooth not work on safari

    $('html, body').animate({
        scrollTop: 0
    }, 1500);

    add-button-animation

    2022-03-06

    PHP ปัญหา strpos()
    Deprecated: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

     if(strpos($db_result, (string) $valueToCheckFor) !== false)

    stackoverflow.com - php-how-can-i-avoid-warnings-when-using-strpos-with-null-or-empty-strings

    2022-03-07

    VSCODE Key ลัด

    2022-03-08

    Select option Set max input with  jquery

    <form action="#">
      <select name="product" required onchange="$('#qty').attr('max', $(this).find(':selected').data('max-qty')); $('#discount').attr('max', $(this).find(':selected').data('max-discount'))"> <option value="<?php echo $row['product_id'];?>" data-max-discount="<?php echo $row['profit']; ?>" data-max-qty="<?php echo $row['qty']; ?>"><?php echo $row['gen_name']; ?> - <?php echo $row['product_name']; ?> | คงเหลือ: <?php echo $row['qty']; ?></option> </select> <input type="number" name="qty" id="qty" value="1" min="1" placeholder="Qty" autocomplete="off" required> <input type="number" name="discount" id="discount" min="0" placeholder="ส่วนลด" /> <input id="qty" min=0> </form>

    เพิ่มเติม stackoverflow.com - how-can-i-use-two-data-min-and-data-max-attribute-in-single-tag

    2022-03-09

    แปลง jpg png เป็น svg vector

    2022-03-18

    Summernote เพิ่มปุ่ม add class

    2022-04-18

    PWA

    2022-04-23

    JS - jQuery $.getScript() ยกเลิกการเพิ่มค่า Timestamp ของสคริป โดยการเพิ่มโค๊ดก่อนเรียกใช้งาน ( stackoverflow.com )

    $.ajaxSetup({
        cache: true
    });

    2022-07-28

    javascript สร้าง html template ใช้งานร่วมกับ javascript



    data source | Data Source

    เข้าชมแล้ว 2,930,051 ครั้ง | ทั้งเว็บออนไลน์   4 ท่าน | หน้านี้ออนไลน์   1 ท่าน
    Page generated in 0.0076 seconds ! ( 13 query)