This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = { | |
| entry: ['./src/index.tsx'], | |
| devtool: 'cheap-module-source-map', | |
| output: { | |
| path: path.resolve(__dirname, 'dist'), | |
| filename: 'index.js' | |
| }, | |
| resolve: { | |
| extensions: ['.ts', '.tsx', '.js', '.json'] | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| yarn add @babel/core @babel/preset-env @babel/preset-react @babel/preset-typescript babel-loader typescript prettier -D |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| import AutoComplete from 'react-otocomplete'; | |
| import ReactDOM from 'react-dom'; | |
| let Index = React.createClass({ | |
| getInitialState() { | |
| return { | |
| value: '' | |
| }; | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| import AutoComplete from 'react-otocomplete'; | |
| import ReactDOM from 'react-dom'; | |
| let Index = React.createClass({ | |
| getInitialState() { | |
| return { | |
| value: '' | |
| }; | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [{},{"code":"AD","name":"Andorra"},{"code":"AE","name":"United Arab Emirates"},{"code":"AF","name":"Afghanistan"},{"code":"AG","name":"Antigua and Barbuda"},{"code":"AI","name":"Anguilla"},{"code":"AL","name":"Albania"},{"code":"AM","name":"Armenia"},{"code":"AO","name":"Angola"},{"code":"AQ","name":"Antarctica"},{"code":"AR","name":"Argentina"},{"code":"AS","name":"American Samoa"},{"code":"AT","name":"Austria"},{"code":"AU","name":"Australia"},{"code":"AW","name":"Aruba"},{"code":"AX","name":"Åland Islands"},{"code":"AZ","name":"Azerbaijan"},{"code":"BA","name":"Bosnia and Herzegovina"},{"code":"BB","name":"Barbados"},{"code":"BD","name":"Bangladesh"},{"code":"BE","name":"Belgium"},{"code":"BF","name":"Burkina Faso"},{"code":"BG","name":"Bulgaria"},{"code":"BH","name":"Bahrain"},{"code":"BI","name":"Burundi"},{"code":"BJ","name":"Benin"},{"code":"BL","name":"Saint Barthélemy"},{"code":"BM","name":"Bermuda"},{"code":"BN","name":"Brunei Darussalam"},{"code":"BO","name":"Bolivia, Plurinational State of"},{"cod |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function getWindowDimensions(){ | |
| var viewportwidth; | |
| var viewportheight; | |
| // the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight | |
| if (typeof window.innerWidth != 'undefined') | |
| { | |
| viewportwidth = window.innerWidth, | |
| viewportheight = window.innerHeight; | |
| } | |
| // IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // get window element of given iframe object | |
| // works in all browsers | |
| function getIframeWindow(iframe_object) { | |
| var doc; | |
| if (iframe_object.contentWindow) { | |
| return iframe_object.contentWindow; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta http-equiv="content-type" content="text/html; charset=utf-8" /> | |
| <title></title> | |
| <script src="js/json2.js"></script> | |
| <script type="text/javascript" src="http://js.jotform.com/JotFormCustomWidget.min.js"></script> | |
| <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script> | |
| <script src="//assets.transloadit.com/js/jquery.transloadit2-v2-latest.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| JF.createFormQuestion("32742366921860", | |
| { | |
| "type": "control_head", | |
| "text": "Created form questions shit", | |
| "order": "3", | |
| "name":"clickTo", | |
| }, | |
| function success(){ | |
| console.log("question created"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # This is the main Apache server configuration file. It contains the | |
| # configuration directives that give the server its instructions. | |
| # See <URL:http://httpd.apache.org/docs/2.2/> for detailed information. | |
| # In particular, see | |
| # <URL:http://httpd.apache.org/docs/2.2/mod/directives.html> | |
| # for a discussion of each configuration directive. | |
| # | |
| # | |
| # Do NOT simply read the instructions in here without understanding |