Software Development Tricky

Tuesday 11 April 2017

HTML 5 Drag & Drop

Div Element & List Item Drag and Drop With Help of HTML 5, CSS & Javascript
HTML5 Drag and drop (DnD) is event-based way of making an element draggable on a page. Native browser support for this feature means faster, more responsive web apps.
Code For HTML:

File Name: dragdrop.html

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCtYPE html>
<html>
    <head>
        <title>Div Element & List Items Drag and Drop</title>
        <link rel="stylesheet" type="text/css" href="css/dragdrop.css" />
        <script async src="js/dragdrop.js"></script>
    </head>
    <body>
        <p style="text-align:center;font-weight: bold;text-decoration: underline;">using List Item Drag and Drop</p>
        <div class="centerList">
            <ul id="columns">
                <li class="column" draggable="true"><header>Australia</header></li>
                <li class="column" draggable="true"><header>Bahrain</header></li>
                <li class="column" draggable="true"><header>Canada</header></li>
                <li class="column" draggable="true"><header>Denmark</header></li>
                <li class="column" draggable="true"><header>France</header></li>
            </ul>
        </div>
        <p style="text-align:center;font-weight: bold;text-decoration: underline;">using Div Element Drag and Drop</p>
        <div class="centerDiv">
            <div id="columns">
                <div class="column" draggable="true"><header>Australia</header></div>
                <div class="column" draggable="true"><header>Bahrain</header></div>
                <div class="column" draggable="true"><header>Canada</header></div>
                <div class="column" draggable="true"><header>Denmark</header></div>
                <div class="column" draggable="true"><header>France</header></div>
            </div>
        </div>
    </body>
</html>
Code For CSS:

File Name: dragdrop.css

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
[draggable] {
  -moz-user-select: none;
  -khtml-user-select: none;
  -webkit-user-select: none;
  user-select: none;
  /* Required to make elements draggable in old WebKit */
  -khtml-user-drag: element;
  -webkit-user-drag: element;
}

#columns {
  list-style-type: none;
}

.column {
  width: 162px;
  padding-bottom: 5px;
  padding-top: 5px;
  text-align: center;
  cursor: move;
}
.column header {
  height: 20px;
  width: 150px;
  color: black;
  background-color: #ccc;
  padding: 5px;
  border-bottom: 1px solid #ddd;
  border-radius: 10px;
  border: 2px solid #666666;
}

.column.dragElem {
  opacity: 0.4;
}
.column.over {
  /*border: 2px dashed #000;*/
  border-top: 2px solid green;
}
.centerList {
    margin:auto;
    width:20%;
    padding:10px;
}
.centerDiv {
    margin:auto;
    width:15%;
    padding:10px;
}
Code For JS:

File Name: dragdrop.js
File Location: js/dragdrop.js

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
var dragSrcEl = null;

function handleDragStart(e) {
  // Target (this) element is the source node.
  dragSrcEl = this;

  e.dataTransfer.effectAllowed = 'move';
  e.dataTransfer.setData('text/html', this.outerHTML);

  this.classList.add('dragElem');
}
function handleDragOver(e) {
  if (e.preventDefault) {
    e.preventDefault(); // Necessary. Allows us to drop.
  }
  this.classList.add('over');

  e.dataTransfer.dropEffect = 'move';  // See the section on the DataTransfer object.

  return false;
}

function handleDragEnter(e) {
  // this / e.target is the current hover target.
}

function handleDragLeave(e) {
  this.classList.remove('over');  // this / e.target is previous target element.
}

function handleDrop(e) {
  // this/e.target is current target element.

  if (e.stopPropagation) {
    e.stopPropagation(); // Stops some browsers from redirecting.
  }

  // Don't do anything if dropping the same column we're dragging.
  if (dragSrcEl != this) {
    // Set the source column's HTML to the HTML of the column we dropped on.
    //alert(this.outerHTML);
    //dragSrcEl.innerHTML = this.innerHTML;
    //this.innerHTML = e.dataTransfer.getData('text/html');
    this.parentNode.removeChild(dragSrcEl);
    var dropHTML = e.dataTransfer.getData('text/html');
    this.insertAdjacentHTML('beforebegin',dropHTML);
    var dropElem = this.previousSibling;
    addDnDHandlers(dropElem);
    
  }
  this.classList.remove('over');
  return false;
}

function handleDragEnd(e) {
  // this/e.target is the source node.
  this.classList.remove('over');

  /*[].forEach.call(cols, function (col) {
    col.classList.remove('over');
  });*/
}

function addDnDHandlers(elem) {
  elem.addEventListener('dragstart', handleDragStart, false);
  elem.addEventListener('dragenter', handleDragEnter, false)
  elem.addEventListener('dragover', handleDragOver, false);
  elem.addEventListener('dragleave', handleDragLeave, false);
  elem.addEventListener('drop', handleDrop, false);
  elem.addEventListener('dragend', handleDragEnd, false);

}

var cols = document.querySelectorAll('#columns .column');
[].forEach.call(cols, addDnDHandlers);

12 comments:

  1. Good initiate well done mani...

    ReplyDelete
    Replies
    1. Hello all
      am looking few years that some guys comes into the market
      they called themselves hacker, carder or spammer they rip the
      peoples with different ways and it’s a badly impact to real hacker
      now situation is that peoples doesn’t believe that real hackers and carder scammer exists.
      Anyone want to make deal with me any type am available but first
      I‘ll show the proof that am real then make a deal like

      Available Services

      ..Wire Bank Transfer all over the world

      ..Western Union Transfer all over the world

      ..Credit Cards (USA, UK, AUS, CAN, NZ)

      ..School Grade upgrade / remove Records

      ..Spamming Tool

      ..keyloggers / rats

      ..Social Media recovery

      .. Teaching Hacking / spamming / carding (1/2 hours course)

      discount for re-seller

      Contact: 24/7

      fixitrogers@gmail.com

      Delete
    2. **Contact 24/7**
      Telegram > @leadsupplier
      ICQ > 752822040
      Skype > Peeterhacks
      Wicker me > peeterhacks

      **HIGH CREDIT SCORES SSN FULLZ AVAILABLE**

      >For tax filling/return
      >SSN DOB DL all info included
      >For SBA & PUA
      >Fresh spammed & Fresh database

      **TOOLS & TUTORIALS AVAILABLE FOR HACKING SPAMMING
      CARDING CASHOUT CLONING SCRIPTING**

      Fullz info included
      NAME+SSN+DOB+DL+DL-STATE+ADDRESS
      Employee & Bank details included
      High credit fullz with DL 700+
      (bulk order preferable)
      **Payment in all crypto currencies will be accepted**

      ->You can buy few for testing
      ->Invalid or wrong info will be replaced
      ->Serious buyers contact me for long term business & excellent profit
      ->Genuine & Verified stuff

      TOOLS & TUTORIALS AVAILABLE:

      "SPAMMING" "HACKING" "CARDING" "CASH OUT"
      "KALI LINUX" "BLOCKCHAIN BLUE PRINTS" "SCRIPTING"

      **TOOLS & TUTORIALS LIST**

      =>US CC Fullz
      =>Ethical Hacking Tools & Tutorials
      =>Bitcoin Hacking
      =>Kali Linux
      =>Keylogger & Keystroke Logger
      =>Bulk SMS Sender
      =>Facebook & Google Hacking
      =>Bitcoin Flasher
      =>SQL Injector
      =>Logins Premium (PayPal/Amazon/Coinbase/Netflix/FedEx/Banks)
      =>Bitcoin Cracker
      =>SMTP Linux Root
      =>Shell Scripting
      =>DUMPS with pins track 1 and 2 with & without pin
      =>SMTP's, Safe Socks, Rdp's brute
      =>PHP mailer
      =>SMS Sender & Email Blaster
      =>Cpanel
      =>Server I.P's & Proxies
      =>Viruses & VPN's
      =>HQ Email Combo (Gmail, Yahoo, Hotmail, MSN, AOL, etc.)

      ==>Contact 24/7<==
      Telegram> @leadsupplier
      ICQ> 752822040
      Skype> Peeterhacks
      Wicker me > peeterhacks

      *Serious buyers are always welcome
      *Big Discount in bulk order
      *Offer gives monthly, quarterly, half yearly & yearly
      *Hope we do a great business together

      **You should try at least once**

      Delete
  2. quickesthacker@gmail.com onlinehack.business.site

    U Need Any Help ?

    *University grades changing
    *Bank accounts hack
    *Twitters hack
    *email accounts hack
    *Grade Changes hack
    * load bank account any amounts
    *Website crashed hack
    *server crashed hack
    *Retrieval of lost file/documents
    *Erase criminal records hack
    *Databases hack
    *Sales of Dumps cards of all kinds
    *Untraceable Ip
    *Individual computers hack
    *Websites hack
    *Facebook hack
    *Control devices remotely hack
    *Burner Numbers hack
    *Verified Paypal Accounts hack
    *Any social media account hack
    *Android & iPhone Hack
    *Word Press Blogs hack
    *Text message interception hack
    *email interception hack

    - See more at:

    quickesthacker@gmail.com onlinehack.business.site

    quickesthacker@gmail.com onlinehack.business.site

    U Need Any Help ?

    *University grades changing
    *Bank accounts hack
    *Twitters hack
    *email accounts hack
    *Grade Changes hack
    * load bank account any amounts
    *Website crashed hack
    *server crashed hack
    *Retrieval of lost file/documents
    *Erase criminal records hack
    *Databases hack
    *Sales of Dumps cards of all kinds
    *Untraceable Ip
    *Individual computers hack
    *Websites hack
    *Facebook hack
    *Control devices remotely hack
    *Burner Numbers hack
    *Verified Paypal Accounts hack
    *Any social media account hack
    *Android & iPhone Hack
    *Word Press Blogs hack
    *Text message interception hack
    *email interception hack

    - See more at:

    quickesthacker@gmail.com onlinehack.business.site

    quickesthacker@gmail.com onlinehack.business.site

    U Need Any Help ?

    *University grades changing
    *Bank accounts hack
    *Twitters hack
    *email accounts hack
    *Grade Changes hack
    * load bank account any amounts
    *Website crashed hack
    *server crashed hack
    *Retrieval of lost file/documents
    *Erase criminal records hack
    *Databases hack
    *Sales of Dumps cards of all kinds
    *Untraceable Ip
    *Individual computers hack
    *Websites hack
    *Facebook hack
    *Control devices remotely hack
    *Burner Numbers hack
    *Verified Paypal Accounts hack
    *Any social media account hack
    *Android & iPhone Hack
    *Word Press Blogs hack
    *Text message interception hack
    *email interception hack

    - See more at:

    quickesthacker@gmail.com onlinehack.business.site

    ReplyDelete

  3. CONTACT US FOR ALL KINDS OF HACKING JOB @ (rodney.bent@consultant.com) and Text Business WHatsapp : +1 (470) 243-4179:

    We offer professional Hacking services ,

    we offer tHe following services;
    -University grades
    cHanging-Bank accounts
    Hack-Erase criminal records
    Hack-Facebook
    Hack-Twitters
    Hack-email accounts
    Hack-Grade CHanges
    Hack-Website crasHed
    Hack-server crasHed
    Hack-Skype
    Hack-BTC Recovery Databases
    Hack Word Press Blogs
    Hack-Individual computers
    Hack-Control devices remotely Hack-Burner Numbers
    Hack-Verified Paypal Accounts
    Hack-Any social media account
    Hack-Android & iPHone Hack-Text message interception Hack-email interception
    Hack-Untraceable Ip etc.

    Contact us at (rodney.bent@consultant.com) or text Business WHatsapp: ?+1 (470) 243-4179?) for more inquiry.Track Calls log and Spy Call Recording.Monitoring SMS text messages remotely.Cell pHone GPS location tracking. Spy on WHatsapp Messages.
    Free Update and 100% Undetectable.Track BBM messages and Line messages.

    Track Internet Browsing History and Read pHone Access Address Book, totally wortH your money.
    please no time wasters, He or sHe won't under any circumstances work for free, you can reacH tHem by email (rodney.bent@consultant.com) or add on Hangout(rodney.bent101@gmail.com) call on +1(501)732-7155.

    ReplyDelete
  4. Sir/Madam,


    Have you ever searcHed for fund, loans, financial assistance or needs an accredited lender to Help you meet witH your needs and demands, tHen you Have no alternative tHan to get an instant and reliable service from our loaning Agency.

    We offer loans ranging from Ten tHousand Dollar to Twenty-Five Million Dollar($10,000, 000.00 – ($25,000,000.00).

    NB:Loan duration is 1 to 20years (Maximum).
    We offer loan at 3% interest rate per annum and witH no credit cHeck, we offer personal loan, debt consolidation loan, business expansion.


    Loan for any reason!
    If you are interested, kindly provide us tHe following details.


    FULL NAME:•
    HOME ADDRESS:•
    SEX:•
    AGE:•
    PASSPORT/I.D NUMBER:•
    COUNTRY:•
    PURPOSE OF LOAN:•
    AMOUNT OF LOAN:•
    OCCUPATION:•
    MONTHLY INCOME:•
    LOAN DURATION:•
    CONTACT NUMBER:•
    CONTACT EMAIL:


    Yours Sincerely,

    Mr, Frank Santiago
    Loan Service Controller,
    Apply Email: officelibra@cash4u.com
    Text Line WHatsApp+ ?1 (470) 243-4179

    ReplyDelete
  5. Are you desperately in need of a hacker in any area of your life??? then you can contact; ( hackintechnologyatGMAILdotCOM ) services like; -hack into your cheating partner's phone(whatsapp,bbm.gmail,icloud,facebook, twitter,snap chat and others) -Sales of Blank ATM cards. -hack into email accounts and trace email location -all social media accounts, -school database to clear or change grades, -Retrieval of lost file/documents -DUIs -company records and systems, -Bank accounts,Paypal accounts -Credit cards hacker -Credit score hack -Monitor any phone and email address -Websites hacking, pentesting. -IP addresses and people tracking. -Hacking courses and classes CONTACT THEM= .hackintechnologyatGMAILdotCOM WHATSAPP +12132951376(WHATSAPP) my services are the best on the market and 100% security and discreet work is guarantee

    ReplyDelete
  6. I discovered my wife to be a silent killer, she acts up all loving and caring but a very silent killer and I found out with the help of WhitehatstechATgmailDOTcom this hacker made me to understand that my wife phone could be hacked and in less than 4 hours it was really hacked, I was able to read a lot that has been going on at my back right on my wife cell phone. This is like a dream come through, Thank you to the best hacker WhitehatstechATgmailDOTcom WHATSAPP; +18189256165

    ReplyDelete
  7. ****Contact Me****
    *ICQ :748957107
    *Gmail :taimoorh944@gmail.com
    *Telegram :@James307


    (Selling SSN Fullz/Pros)

    *High quality and connectivity
    *If you have any trust issue before any deal you may get few to test
    *Every leads are well checked and available 24 hours
    *Fully cooperate with clients
    *Any invalid info found will be replaced
    *Credit score above 700 every fullz
    *Payment Method
    (BTC&Paypal)

    *Fullz available according to demand too i.e (format,specific state,specific zip code & specifc name etc..)

    *Format of Fullz/leads/profiles
    °First & last Name
    °SSN
    °DOB
    °(DRIVING LICENSE NUMBER)
    °ADDRESS
    (ZIP CODE,STATE,CITY)
    °PHONE NUMBER
    °EMAIL ADDRESS
    °Relative Details
    °Employment status
    °Previous Address
    °Income Details
    °Husband/Wife info
    °Mortgage Info


    $2 for each fullz/lead with DL num
    $1 for each SSN+DOB
    $5 for each with Premium info
    (Price can be negotiable if order in bulk)


    OTHER SERVICES ProvIDING

    *(Dead Fullz)
    *(Email leads with Password)

    *(Dumps track 1 & 2 with pin and without pin)

    *Hacking Tutorials
    *Smtp Linux
    *Safe Sock

    *Let's come for a long term Business


    ****Contact Me****
    *ICQ :748957107
    *Gmail :taimoorh944@gmail.com
    *Telegram :@James307

    ReplyDelete
  8. ****Contact Me****
    *ICQ :748957107
    *Gmail :taimoorh944@gmail.com
    *Telegram :@James307


    (Selling SSN Fullz/Pros)

    *High quality and connectivity
    *If you have any trust issue before any deal you may get few to test
    *Every leads are well checked and available 24 hours
    *Fully cooperate with clients
    *Any invalid info found will be replaced
    *Credit score above 700 every fullz
    *Payment Method
    (BTC&Paypal)

    *Fullz available according to demand too i.e (format,specific state,specific zip code & specifc name etc..)

    *Format of Fullz/leads/profiles
    °First & last Name
    °SSN
    °DOB
    °(DRIVING LICENSE NUMBER)
    °ADDRESS
    (ZIP CODE,STATE,CITY)
    °PHONE NUMBER
    °EMAIL ADDRESS
    °Relative Details
    °Employment status
    °Previous Address
    °Income Details
    °Husband/Wife info
    °Mortgage Info


    $2 for each fullz/lead with DL num
    $1 for each SSN+DOB
    $5 for each with Premium info
    (Price can be negotiable if order in bulk)


    OTHER SERVICES ProvIDING

    *(Dead Fullz)
    *(Email leads with Password)

    *(Dumps track 1 & 2 with pin and without pin)

    *Hacking Tutorials
    *Smtp Linux
    *Safe Sock

    *Let's come for a long term Business


    ****Contact Me****
    *ICQ :748957107
    *Gmail :taimoorh944@gmail.com
    *Telegram :@James307

    ReplyDelete
  9. Are you in need of a hacker in any area of your life??? then you can contact; services like; -hack into your cheating partner's phone(whatsapp,bbm.gmail,icloud,facebook, twitter,snap chat and others) -Sales of Blank ATM cards. -hack into email accounts and trace email location -all social media accounts, -school database to clear or change grades, -Retrieval of lost file/documents -DUIs -company records and systems, -Bank accounts,Paypal accounts -Credit cards hacker -Credit score hack -Monitor any phone and email address -Websites hacking, pentesting. -IP addresses and people tracking. -Hacking courses and classes CONTACT THEM= hackintechnology@cyberservices.com or whatsapp +12132951376 their services are the best on the market and 100% security and discreet work is guaranteed

    ReplyDelete
  10. Update 02/08/2022 - ICQ 678924920 - SELL FULLZ/DL/SSN/DOB/DUMPS
    Hi guys!
    Call me Jack...
    Update February 8, 2022 <1:56 PM>
    LIST CREDIT CARD AND GIFT CARD

    ***** CREDIT CARD & DEBIT CARD
    USA (Best Seller)
    UNITED KINGDOM (Best Seller)
    AUSTRALIA
    CANADA
    FRANCE
    GERMANY
    CHILE
    TAIWAN
    SPAIN
    JAPAN
    ITALY
    BRAZIL

    ***** GIFT CARD
    AMAZON (Best Seller)
    ITUNES (Best Seller)
    BESTBUY
    STARBUCK
    EBAY
    XBOX (Best Seller)
    WALMART
    TARGET

    ***** DEAD FULLZ INFORMATION
    US/UK FULLZ RANDOM BANK
    US/UK FULLZ WITH ALL BANK (CHASE, HSBC, BARCLAYS, etc...)
    VALID PASSPORT - DRIVER'S LICENSE - NATIONAL INSURANCE NUMBER - SSN - DOB
    UPDATED NEW YORK, COLORADO, CALIFORNIA, TEXAS, RHODE ISLAND, ILLINOIS (DRIVER'S LICENSE, SSN, DOB )

    ***** DUMPS WITH PIN + CLONE CARD

    CONTACT ME TO BUY:
    ICQ NUMBER: 678924920
    TELEGRAM: @jackhieu or Link https://t.me/jackhieu (Recommend)
    WHATSAPP: +84774511893
    GMAIL: (JACK678924920@GMAIL . COM)



    THANK YOUR TIME!

    Tag:
    sell info ssn dob dl, Sell Info Fullz Company
    I Sell Info use it to do PUA and SBA
    Sell Info Fullz SBA
    cvv for sale,
    track 2 dumps, selling dumps cvv fullz,
    track 1 track 2 dumps, buy cc dumps,
    selling dumps with pin,
    dump cvv, track 1&2 dumps with pin,
    cc dumps free, track 1 and track 2 dumps,
    dump cc, fresh dumps, free cvv dumps, track 2 dumps for sale
    Black Market Stolen Credit Card Information cvv fullz dumps, buy cvv dumps verified seller,
    buy dumps online, buy fresh Dumps, credit card cvv information for sale, cvv fullz dumps,
    cvv2 shop, free dead fullz 2021, free fullz 2021, free fullz info, Fresh fullz, fullz shop,
    Legit Cvv Dumps Vendor, sell cc good dumps, Sell cvv cc fresh good,git Cvv Dumps Vendor, sell cc good dumps, Sell cvv cc fresh good, driverlicense, driverlicensephoto, passport, passportphoto, ssn, dob, idphoto, certificate, eincompany, statescertificate, weight, height, greencard,


    VERIFIED SELLER BY ADMIN

    ReplyDelete

Followers