Skip to content

Instantly share code, notes, and snippets.

View RblSb's full-sized avatar
🐕
Let's Kode?

RblSb RblSb

🐕
Let's Kode?
View GitHub Profile
We couldn’t find that file to show.
@RblSb
RblSb / WebSocketHost.hx
Created March 3, 2018 03:15
hxbit websockethost
/*
* Copyright (C)2015-2016 Nicolas Cannasse
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
@RblSb
RblSb / Browse.hx
Created May 30, 2017 22:52
html5 file reference
class Test {
static function main() {
js.Browser.window.onclick = function() {
var input = js.Browser.document.createElement("input");
input.style.visibility = "hidden"; //comment this to test
input.setAttribute("type", "file");
input.id = "browse";
input.onclick = function(e) {
e.cancelBubble = true;
e.stopPropagation();