Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- What is wrong? i want to create a new html side with this code, but it show only a white side:
- <script>
- <script src="//code.jquery.com/jquery-1.10.2.min.js"></script>
- <script src="//dta8vnpq1ae34.cloudfront.net/javascripts/jquery-ui-1.10.4.custom.min.js"></script>
- <script src="//dta8vnpq1ae34.cloudfront.net/javascripts/pitchprint.min.js"></script>
- var designer;
- $(document).ready(function () {
- initializeEditor();
- });
- function initializeEditor() {
- designer = new W2P.designer({
- //set the customize now button to disabled untill the designer is ready...
- $("customize_now_button").attr('disabled', 'disabled');
- apiKey: "0611d2263c6396d78ee016446d91cee6",
- globalUrlPrefix: "https://pitchprint.net/app/",
- designId: "2835067ec048692279e9d09de1327153",
- autoInitialize: true,
- product: {id:'PID_12', title:'Sample Business Card'},
- mode: "new",
- onReady: on_ready_function,
- onSave: on_saved_function
- });
- }
- function on_ready_function() {
- $("#customize_now_button").removeAttr('disabled');
- $("#customize_now_button").click(function() {
- designer.show();
- });
- }
- function on_saved_function(_fromDesigner) {
- designer.unload();
- console.log(_fromDesigner);
- }
- </script>
Add Comment
Please, Sign In to add comment