News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Problem with my script.

Started by Stephan1979, April 13, 2020, 03:19:24 AM

Previous topic - Next topic

Stephan1979

I'm trying to get a url (html) file to communicate (if you can call it that) with hxxp:ajax.googleapis.com [nonactive] and an answer should come back in a json / snippet file and then display it in an html file.

I already have a design and script of a website, only sending and receiving the mentioned files is not successful.

Who can help me with this?

Kind regards Stephan

vbgamer45

Would need to see the script to see what is wrong.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Stephan1979

#2
Quote from: vbgamer45 on April 13, 2020, 10:30:47 AM
Would need to see the script to see what is wrong.

This is the index.html file:

<html lang="en" ng-app="linterApp">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Hidden website data</title>
    <link rel="stylesheet" href="/assets/application-78c60c0ca89335b4fe5bd0dcb9a782e1e8aeb4d4b25eae8ca548b1c46bc36352.css" />
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
      integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u"
      crossorigin="anonymous">
    <link rel="stylesheet"
      href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css"
      integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp"
      crossorigin="anonymous">
    <script
      src="https://code.jquery.com/jquery-3.2.1.slim.min.js"
      integrity="sha256-k2WSCIexGzOj3Euiig+TlR8gA0EmPjuc79OEeY5L45g="
      crossorigin="anonymous"></script>
    <script
      src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"
      integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa"
      crossorigin="anonymous"></script>

    <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular-route.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular-sanitize.min.js"></script>
<link rel="stylesheet" href="/assets/snippet-3fccb51547d2a7dc018c490548108241900698984143ff187d164904b7b65921.css" />
<script src="/assets/angular-file-upload-14302ada58b68499cc24c9112c99667e1f88adca28da768e12403e03efa91d88.js"></script>
<script src="/assets/application-d316f1a0badf1db9cfcf130b1d95649ef292bba7df38aef5738e7377285980e0.js"></script>
<base href="/">


    <script>
      // Navigation
      $(function () {
        // Select appropriate nav tab
        var href = window.location.pathname;
        $('nav ul.nav ul.dropdown-menu a').removeClass('active');
        $('nav ul.nav ul.dropdown-menu a[href="' + href + '"]').addClass('active');
      });
    </script>
  </head>
  <body class="linter" about="/" typeof="schema:SoftwareApplication cc:Work">
    <nav class="navbar">
      <div class="container-fluid">
        <div class="navbar-header">
                    <a class="navbar-brand" href= http://stephanonline.freevar.com/>Read hidden website data.</a>
        </div>
        <p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</div>
    </nav>
    <div class="container-fluid" role="main">
      <div ng-controller="LinterController">
  <div class="lighter">
    <p>
      Enter a URL below to see what data your page contains.
    </p>
    <ul class="nav nav-tabs linter">
      <li>
<a href="" class="url" ng-class="getClass('url')" ng-click="fieldset = 'url'">by URL</a></li>
      <li>
<a href="" class="upload" ng-class="getClass('upload')" ng-click="fieldset = 'upload'">by File Upload</a></li>
      <li>
<a href="" class="input" ng-class="getClass('input')" ng-click="fieldset = 'input'">by Direct Input</a></li>
    </ul>
    <form id="linter_input">
      <fieldset class="input-group" ng-show="fieldset === 'url'">
        <legend>Page URL</legend>
        <input class="form-control" type="text" size="80" ng-model="url"/>
        <input type="submit" ng-click="lintUrl(url)" value="Submit" ng-disabled="fieldset !== 'url'"/>
        <fieldset>
          <legend>Options</legend>
          <label for="verify-ssl">Verify SSL</label>
          <input id="verify-ssl" type="checkbox"  ng-model="verifySSL" />
        </fieldset>
        <br/>
        &nbsp;</fieldset>

      <fieldset class="input-group" ng-show="fieldset === 'upload'">
        <legend>File Upload</legend>
        <!--div class="well my-drop-zone" uploader="uploader">
          Drag-drop file to upload
        </div -->
        <table class="table">
          <thead>
            <tr>
              <th style="width='50%'">Name</th>
              <th>Size</th>
              <th>Progress</th>
              <th>Status</th>
              <th>Actions</th>
            </tr>
          </thead>
          <tbody>
           <tr ng-repeat="item in uploader.queue">
              <td><strong>{{ item.file.name }}</strong></td>
              <td style="white-space: nowrap">{{ item.file.size/1024/1024|number:2 }} MB</td>
              <td>
                <div class="progress" style="margin-bottom: 0;">
                  <div class="progress-bar" role="progressbar" ng-style="{ 'width': item.progress + '%' }"></div>
                </div>
              </td>
              <td class="text-center">
                <span ng-show="item.isSuccess"><i class="glyphicon glyphicon-ok"></i></span>
                <span ng-show="item.isCancel"><i class="glyphicon glyphicon-ban-circle"></i></span>
                <span ng-show="item.isError"><i class="glyphicon glyphicon-remove"></i></span>
              </td>
              <td style="white-space: nowrap">
                <button type="button" class="btn btn-success btn-xs" ng-click="item.upload()" ng-disabled="item.isReady || item.isUploading || item.isSuccess">
                  <span class="glyphicon glyphicon-upload"></span> Upload
                </button>
                <button type="button" class="btn btn-warning btn-xs" ng-click="item.cancel()" ng-disabled="!item.isUploading">
                  <span class="glyphicon glyphicon-ban-circle"></span> Cancel
                </button>
                <button type="button" class="btn btn-danger btn-xs" ng-click="item.remove()">
                  <span class="glyphicon glyphicon-trash"></span> Remove
                </button>
              </td>
            </tr>
          </tbody>
        </table>
        <input type="file" nv-file-select="" uploader="uploader" />
      </fieldset>

      <fieldset class="input-group" ng-show="fieldset === 'input'">
        <legend>Markup</legend>
        <textarea class="input form-control" cols="120" rows="15" ng-model="input"></textarea>
        <input type="submit" ng-click="lintInput(input)" value="Submit" ng-disabled="fieldset !== 'input'" />
      </fieldset>
    </form>
  </div>

  <div ng-show="loading">
    Loading results...
  </div>

  <div class="snippet" ng-show="result">
    <p ng-show="!result.snippet">The data did not match any templates on file.</p>
    <div ng-bind-html="result.snippet">
    </div>
  </div>

  <div class="results" ng-show="result">
    <h2>Data taken from the page:</h2>
    <p ng-show="!result.html">No data detected.</p>
    <div ng-bind-html="result.html"></div>
  </div>

  <div ng-show="result.statistics">
    <h2>Parser statistics</h2>
    <table class="stats table table-condensed">
      <tbody>
        <tr><td>Reader</td><td>{{result.statistics.reader}}</td></tr>
        <tr><td>Statements</td><td>{{result.statistics.count}}</td></tr>
        <tr>
          <td>Templates</td>
          <td><div ng-repeat="template in result.statistics.templates">{{template}}</div></td>
        </tr>
      </tbody>
    </table>
  </div>

  <div ng-show="result.messages">
    <h2>Linter Messages</h2>
    <p ng-repeat="message in result.messages">
      {{message}}
    </p>
  </div>

  <div ng-show="result.debug">
    <h2>Debug Information</h2>
  <textarea rows="20" cols="120">
    {{result.debug}}
  </textarea>
  </div>
</div>

    </div>
    <footer id="footer">
      <p class="content">
       Read hidden website data.
       </p>
    </footer>
     </body>
</html>

Stephan1979

#3
Quote from: vbgamer45 on April 13, 2020, 10:30:47 AM
Would need to see the script to see what is wrong.

This is 1 js file:

var testApp=angular.module("linterApp",["ngRoute","ngSanitize","angularFileUpload"]).config(["$routeProvider","$locationProvider","$logProvider",function(l,n,e){n.html5Mode(!0),e.debugEnabled(!0),l.when("/",{controller:"LinterController"}).otherwise({controller:function(){window.location.replace("/")},template:"<div></div>"})}]).controller("LinterController",["$scope","$http","$location","FileUploader",function(e,n,t,l){var r=e.uploader=new l({url:"/"});e.url=null,e.upload=null,e.input=null,e.verifySSL=!0,e.loading=null,e.fieldset="url",e.getClass=function(l){return e.fieldset===l?"active":""},e.lintUrl=function(l){e.loading=!0,e.result=null,e.url=l,t.url(t.path()),t.search("url",l),e.verifySSL||t.search("verify_ssl","false"),n.get("/",{params:{url:l,verify_ssl:e.verifySSL}}).then(function(l){e.result=l.data,e.loading=!1})["catch"](function(l){e.result=l.data,e.loading=!1})},e.lintInput=function(l){e.loading=!0,e.result=null,t.url(t.path()),n.post("/",{content:l,verify_ssl:e.verifySSL}).then(function(l){e.result=l.data,e.loading=!1})["catch"](function(l){e.result=l.data,e.loading=!1})},r.onAfterAddingFile=function(){e.result=null,t.url(t.path())},r.onBeforeUploadItem=function(){e.loading=!0,e.result=null,t.url(t.path())},r.onCompleteItem=function(l,n){e.result=n,e.loading=!1},t.search().url&&("false"===t.search().verify_ssl&&(e.verifySSL=!1),e.lintUrl(t.search().url))}]);

Stephan1979

#4
Quote from: vbgamer45 on April 13, 2020, 10:30:47 AM
Would need to see the script to see what is wrong.

This the last one js file:


!function webpackUniversalModuleDefinition(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["angular-file-upload"]=t():e["angular-file-upload"]=t()}(this,function(){return function(n){function o(e){if(r[e])return r[e].exports;var t=r[e]={exports:{},id:e,loaded:!1};return n[e].call(t.exports,t,t.exports,o),t.loaded=!0,t.exports}var r={};return o.m=n,o.c=r,o.p="",o(0)}([function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}var r=o(n(1)),i=o(n(2)),s=o(n(3)),a=o(n(4)),u=o(n(5)),l=o(n(6)),p=o(n(7)),c=o(n(8)),f=o(n(9)),d=o(n(10)),h=o(n(11)),y=o(n(12)),m=o(n(13));angular.module(r["default"].name,[]).value("fileUploaderOptions",i["default"]).factory("FileUploader",s["default"]).factory("FileLikeObject",a["default"]).factory("FileItem",u["default"]).factory("FileDirective",l["default"]).factory("FileSelect",p["default"]).factory("FileDrop",f["default"]).factory("FileOver",d["default"]).factory("Pipeline",c["default"]).directive("nvFileSelect",h["default"]).directive("nvFileDrop",y["default"]).directive("nvFileOver",m["default"]).run(["FileUploader","FileLikeObject","FileItem","FileDirective","FileSelect","FileDrop","FileOver","Pipeline",function(e,t,n,o,r,i,s,a){e.FileLikeObject=t,e.FileItem=n,e.FileDirective=o,e.FileSelect=r,e.FileDrop=i,e.FileOver=s,e.Pipeline=a}])},function(e){e.exports={name:"angularFileUpload"}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]={url:"/",alias:"file",headers:{},queue:[],progress:0,autoUpload:!1,removeAfterUpload:!1,method:"POST",filters:[],formData:[],queueLimit:Number.MAX_VALUE,withCredentials:!1,disableMultipart:!1}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function oe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(X,V,J,e,K,Y,Z,ee){var te=e.File,ne=e.FormData,t=function(){function n(e){oe(this,n);var t=se(X);ae(this,t,e,{isUploading:!1,_nextIndex:0,_directives:{select:[],drop:[],over:[]}}),this.filters.unshift({name:"queueLimit",fn:this._queueLimitFilter}),this.filters.unshift({name:"folder",fn:this._folderFilter})}return n.prototype.addToQueue=function o(e,s,t){var a=this,u=this.isArrayLikeObject(e)?Array.prototype.slice.call(e):[e],l=this._getFilters(t),n=this.queue.length,p=[],c=function c(){var e=u.shift();if(de(e))return f();var t=a.isFile(e)?e:new Y(e),n=a._convertFiltersToPipes(l),o=new ee(n),i=function i(e){var t=e.pipe.originalFilter,n=re(e.args,2),o=n[0],r=n[1];a._onWhenAddingFileFailed(o,t,r),c()},r=function r(e,t){var n=new Z(a,e,t);p.push(n),a.queue.push(n),a._onAfterAddingFile(n),c()};o.onThrown=i,o.onSuccessful=r,o.exec(t,s)},f=function f(){a.queue.length!==n&&(a._onAfterAddingAll(p),a.progress=a._getTotalProgress()),a._render(),a.autoUpload&&a.uploadAll()};c()},n.prototype.removeFromQueue=function r(e){var t=this.getIndexOfItem(e),n=this.queue[t];n.isUploading&&n.cancel(),this.queue.splice(t,1),n._destroy(),this.progress=this._getTotalProgress()},n.prototype.clearQueue=function e(){for(;this.queue.length;)this.queue[0].remove();this.progress=0},n.prototype.uploadItem=function i(e){var t=this.getIndexOfItem(e),n=this.queue[t],o=this.isHTML5?"_xhrTransport":"_iframeTransport";n._prepareToUploading(),this.isUploading||(this._onBeforeUploadItem(n),n.isCancel||(n.isUploading=!0,this.isUploading=!0,this[o](n),this._render()))},n.prototype.cancelItem=function a(e){var t,n=this,o=this.getIndexOfItem(e),r=this.queue[o],i=this.isHTML5?"_xhr":"_form";r&&(r.isCancel=!0,r.isUploading?r[i].abort():(t=[undefined,0,{}],K(function s(){n._onCancelItem.apply(n,[r].concat(t)),n._onCompleteItem.apply(n,[r].concat(t))})))},n.prototype.uploadAll=function t(){var e=this.getNotUploadedItems().filter(function(e){return!e.isUploading});e.length&&(ue(e,function(e){return e._prepareToUploading()}),e[0].upload())},n.prototype.cancelAll=function s(){var e=this.getNotUploadedItems();ue(e,function(e){return e.cancel()})},n.prototype.isFile=function u(e){return this.constructor.isFile(e)},n.prototype.isFileLikeObject=function l(e){return this.constructor.isFileLikeObject(e)},n.prototype.isArrayLikeObject=function p(e){return this.constructor.isArrayLikeObject(e)},n.prototype.getIndexOfItem=function c(e){return pe(e)?e:this.queue.indexOf(e)},n.prototype.getNotUploadedItems=function f(){return this.queue.filter(function(e){return!e.isUploaded})},n.prototype.getReadyItems=function d(){return this.queue.filter(function(e){return e.isReady&&!e.isUploading}).sort(function(e,t){return e.index-t.index})},n.prototype.destroy=function h(){var t=this;ue(this._directives,function(e){ue(t._directives[e],function(e){e.destroy()})})},n.prototype.onAfterAddingAll=function y(){},n.prototype.onAfterAddingFile=function m(){},n.prototype.onWhenAddingFileFailed=function v(){},n.prototype.onBeforeUploadItem=function _(){},n.prototype.onProgressItem=function g(){},n.prototype.onProgressAll=function b(){},n.prototype.onSuccessItem=function F(){},n.prototype.onErrorItem=function O(){},n.prototype.onCancelItem=function C(){},n.prototype.onCompleteItem=function w(){},n.prototype.onCompleteAll=function A(){},n.prototype._getTotalProgress=function I(e){if(this.removeAfterUpload)return e||0;var t=this.getNotUploadedItems().length,n=t?this.queue.length-t:this.queue.length,o=100/this.queue.length,r=(e||0)*o/100;return Math.round(n*o+r)},n.prototype._getFilters=function U(e){if(!e)return this.filters;if(fe(e))return e;var t=e.match(/[^\s,]+/g);return this.filters.filter(function(e){return-1!==t.indexOf(e.name)})},n.prototype._convertFiltersToPipes=function T(e){var n=this;return e.map(function(e){var t=ie(n,e.fn);return t.isAsync=3===e.fn.length,t.originalFilter=e,t})},n.prototype._render=function x(){V.$$phase||V.$apply()},n.prototype._folderFilter=function j(e){return!(!e.size&&!e.type)},n.prototype._queueLimitFilter=function M(){return this.queue.length<this.queueLimit},n.prototype._isSuccessCode=function E(e){return 200<=e&&e<300||304===e},n.prototype._transformResponse=function P(t,e){var n=this._headersGetter(e);return ue(J.defaults.transformResponse,function(e){t=e(t,n)}),t},n.prototype._parseHeaders=function S(e){var t,n,o,r={};return e&&ue(e.split("\n"),function(e){o=e.indexOf(":"),t=e.slice(0,o).trim().toLowerCase(),n=e.slice(o+1).trim(),t&&(r[t]=r[t]?r[t]+", "+n:n)}),r},n.prototype._headersGetter=function L(t){return function(e){return e?t[e.toLowerCase()]||null:t}},n.prototype._xhrTransport=function D(o){var n,r=this,i=o._xhr=new XMLHttpRequest;if(o.disableMultipart?n=o._file:(n=new ne,ue(o.formData,function(e){ue(e,function(e,t){n.append(t,e)})}),n.append(o.alias,o._file,o.file.name)),"number"!=typeof o._file.size)throw new TypeError("The file specified is no longer valid");i.upload.onprogress=function(e){var t=Math.round(e.lengthComputable?100*e.loaded/e.total:0);r._onProgressItem(o,t)},i.onload=function(){var e=r._parseHeaders(i.getAllResponseHeaders()),t=r._transformResponse(i.response,e),n=r._isSuccessCode(i.status)?"Success":"Error";r["_on"+n+"Item"](o,t,i.status,e),r._onCompleteItem(o,t,i.status,e)},i.onerror=function(){var e=r._parseHeaders(i.getAllResponseHeaders()),t=r._transformResponse(i.response,e);r._onErrorItem(o,t,i.status,e),r._onCompleteItem(o,t,i.status,e)},i.onabort=function(){var e=r._parseHeaders(i.getAllResponseHeaders()),t=r._transformResponse(i.response,e);r._onCancelItem(o,t,i.status,e),r._onCompleteItem(o,t,i.status,e)},i.open(o.method,o.url,!0),i.withCredentials=o.withCredentials,ue(o.headers,function(e,t){i.setRequestHeader(t,e)}),i.send(n)},n.prototype._iframeTransport=function $(s){var a=this,o=he('<form style="display: none;" />'),u=he('<iframe name="iframeTransport'+Date.now()+'">'),r=s._input;s._form&&s._form.replaceWith(r),s._form=o,r.prop("name",s.alias),ue(s.formData,function(e){ue(e,function(e,t){var n=he('<input type="hidden" name="'+t+'" />');n.val(e),o.append(n)})}),o.prop({action:s.url,method:"POST",target:u.prop("name"),enctype:"multipart/form-data",encoding:"multipart/form-data"}),u.bind("load",function(){var e="",t=200;try{e=u[0].contentDocument.body.innerHTML}catch(i){t=500}var n={response:e,status:t,dummy:!0},o={},r=a._transformResponse(n.response,o);a._onSuccessItem(s,r,n.status,o),a._onCompleteItem(s,r,n.status,o)}),o.abort=function(){var e,t={status:0,dummy:!0},n={};u.unbind("load").prop("src","javascript:false;"),o.replaceWith(r),a._onCancelItem(s,e,t.status,n),a._onCompleteItem(s,e,t.status,n)},r.after(o),o.append(r).append(u),o[0].submit()},n.prototype._onWhenAddingFileFailed=function q(e,t,n){this.onWhenAddingFileFailed(e,t,n)},n.prototype._onAfterAddingFile=function R(e){this.onAfterAddingFile(e)},n.prototype._onAfterAddingAll=function k(e){this.onAfterAddingAll(e)},n.prototype._onBeforeUploadItem=function H(e){e._onBeforeUpload(),this.onBeforeUploadItem(e)},n.prototype._onProgressItem=function B(e,t){var n=this._getTotalProgress(t);this.progress=n,e._onProgress(t),this.onProgressItem(e,t),this.onProgressAll(n),this._render()},n.prototype._onSuccessItem=function N(e,t,n,o){e._onSuccess(t,n,o),this.onSuccessItem(e,t,n,o)},n.prototype._onErrorItem=function W(e,t,n,o){e._onError(t,n,o),this.onErrorItem(e,t,n,o)},n.prototype._onCancelItem=function Q(e,t,n,o){e._onCancel(t,n,o),this.onCancelItem(e,t,n,o)},n.prototype._onCompleteItem=function z(e,t,n,o){e._onComplete(t,n,o),this.onCompleteItem(e,t,n,o);var r=this.getReadyItems()[0];this.isUploading=!1,ce(r)?r.upload():(this.onCompleteAll(),this.progress=this._getTotalProgress(),this._render())},n.isFile=function u(e){return te&&e instanceof te},n.isFileLikeObject=function l(e){return e instanceof Y},n.isArrayLikeObject=function p(e){return le(e)&&"length"in e},n.inherit=function G(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).super_=t},n}();return t.prototype.isHTML5=!(!te||!ne),t.isHTML5=t.prototype.isHTML5,t}Object.defineProperty(t,"__esModule",{value:!0});var re=function(){function n(e,t){var n=[],o=!0,r=!1,i=undefined;try{for(var s,a=e[Symbol.iterator]();!(o=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);o=!0);}catch(u){r=!0,i=u}finally{try{!o&&a["return"]&&a["return"]()}finally{if(r)throw i}}return n}return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return n(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t["default"]=r;o(n(1));var i=angular,ie=i.bind,se=i.copy,ae=i.extend,ue=i.forEach,le=i.isObject,pe=i.isNumber,ce=i.isDefined,fe=i.isArray,de=i.isUndefined,he=i.element;r.$inject=["fileUploaderOptions","$rootScope","$http","$window","$timeout","FileLikeObject","FileItem","Pipeline"]},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(){return function(){function n(e){r(this,n);var t=u(e)?e.value:e;this["_createFrom"+(l(t)?"FakePath":"Object")](t)}return n.prototype._createFromFakePath=function t(e){this.lastModifiedDate=null,this.size=null,this.type="like/"+e.slice(e.lastIndexOf(".")+1).toLowerCase(),this.name=e.slice(e.lastIndexOf("/")+e.lastIndexOf("\\")+2)},n.prototype._createFromObject=function o(e){this.lastModifiedDate=a(e.lastModifiedDate),this.size=e.size,this.type=e.type,this.name=e.name},n}()}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i;o(n(1));var s=angular,a=s.copy,u=s.isElement,l=s.isString},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function F(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(g,b){return function(){function s(e,t,n){F(this,s);var o=A(t),r=o?w(t):null,i=o?null:t;C(this,{url:e.url,alias:e.alias,headers:O(e.headers),formData:O(e.formData),removeAfterUpload:e.removeAfterUpload,withCredentials:e.withCredentials,disableMultipart:e.disableMultipart,method:e.method},n,{uploader:e,file:new b(t),isReady:!1,isUploading:!1,isUploaded:!1,isSuccess:!1,isCancel:!1,isError:!1,progress:0,index:null,_file:i,_input:r}),r&&this._replaceNode(r)}return s.prototype.upload=function n(){try{this.uploader.uploadItem(this)}catch(t){var e=t.name+":"+t.message;this.uploader._onCompleteItem(this,e,t.code,[]),this.uploader._onErrorItem(this,e,t.code,[])}},s.prototype.cancel=function e(){this.uploader.cancelItem(this)},s.prototype.remove=function t(){this.uploader.removeFromQueue(this)},s.prototype.onBeforeUpload=function o(){},s.prototype.onProgress=function r(){},s.prototype.onSuccess=function i(){},s.prototype.onError=function a(){},s.prototype.onCancel=function u(){},s.prototype.onComplete=function l(){},s.prototype._onBeforeUpload=function p(){this.isReady=!0,this.isUploading=!1,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!1,this.isError=!1,this.progress=0,this.onBeforeUpload()},s.prototype._onProgress=function c(e){this.progress=e,this.onProgress(e)},s.prototype._onSuccess=function f(e,t,n){this.isReady=!1,this.isUploading=!1,this.isUploaded=!0,this.isSuccess=!0,this.isCancel=!1,this.isError=!1,this.progress=100,this.index=null,this.onSuccess(e,t,n)},s.prototype._onError=function d(e,t,n){this.isReady=!1,this.isUploading=!1,this.isUploaded=!0,this.isSuccess=!1,this.isCancel=!1,this.isError=!0,this.progress=0,this.index=null,this.onError(e,t,n)},s.prototype._onCancel=function h(e,t,n){this.isReady=!1,this.isUploading=!1,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!0,this.isError=!1,this.progress=0,this.index=null,this.onCancel(e,t,n)},s.prototype._onComplete=function y(e,t,n){this.onComplete(e,t,n),this.removeAfterUpload&&this.remove()},s.prototype._destroy=function m(){this._input&&this._input.remove(),this._form&&this._form.remove(),delete this._form,delete this._input},s.prototype._prepareToUploading=function v(){this.index=this.index||++this.uploader._nextIndex,this.isReady=!0},s.prototype._replaceNode=function _(e){var t=g(e.clone())(e.scope());t.prop("value",null),e.css("display","none"),e.after(t)},s}()}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=r;o(n(1));var i=angular,O=i.copy,C=i.extend,w=i.element,A=i.isElement;r.$inject=["$compile","FileLikeObject"]},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(){var e=function(){function t(e){s(this,t),a(this,e),this.uploader._directives[this.prop].push(this),this._saveLinks(),this.bind()}return t.prototype.bind=function n(){for(var e in this.events){var t=this.events[e];this.element.bind(e,this[t])}},t.prototype.unbind=function o(){for(var e in this.events)this.element.unbind(e,this.events[e])},t.prototype.destroy=function r(){var e=this.uploader._directives[this.prop].indexOf(this);this.uploader._directives[this.prop].splice(e,1),this.unbind()},t.prototype._saveLinks=function i(){for(var e in this.events){var t=this.events[e];this[t]=this[t].bind(this)}},t}();return e.prototype.events={},e}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=r;o(n(1));var a=angular.extend},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function r(s,e){return function(o){function r(e){a(this,r);var t=p(e,{events:{$destroy:"destroy",change:"onChange"},prop:"select"}),n=u(this,o.call(this,t));return n.uploader.isHTML5||n.element.removeAttr("multiple"),n.element.prop("value",null),n}return l(r,o),r.prototype.getOptions=function e(){},r.prototype.getFilters=function t(){},r.prototype.isEmptyAfterSelection=function n(){return!!this.element.attr("multiple")},r.prototype.onChange=function i(){var e=this.uploader.isHTML5?this.element[0].files:this.element[0],t=this.getOptions(),n=this.getFilters();this.uploader.isHTML5||this.destroy(),this.uploader.addToQueue(e,t,n),this.isEmptyAfterSelection()&&(this.element.prop("value",null),this.element.replaceWith(s(this.element.clone())(this.scope)))},r}(e)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=r;o(n(1));var p=angular.extend;r.$inject=["$compile","FileDirective"]},function(e,t){"use strict";function u(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(a){return function(){function n(e){var t=arguments.length<=0||e===undefined?[]:arguments[0];r(this,n),this.pipes=t}return n.prototype.next=function s(e){var t=this.pipes.shift();if(p(t))this.onSuccessful.apply(this,u(e));else{var n=new Error("The filter has not passed");if(n.pipe=t,n.args=e,t.isAsync){var o=a.defer(),r=l(this,this.next,e),i=l(this,this.onThrown,n);o.promise.then(r,i),t.apply(undefined,u(e).concat([o]))}else{Boolean(t.apply(undefined,u(e)))?this.next(e):this.onThrown(n)}}},n.prototype.exec=function o(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];this.next(t)},n.prototype.onThrown=function e(){},n.prototype.onSuccessful=function t(){},n}()}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n;var o=angular,l=o.bind,p=o.isUndefined;n.$inject=["$q"]},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function r(e){return function(n){function o(e){f(this,o);var t=y(e,{events:{$destroy:"destroy",drop:"onDrop",dragover:"onDragOver",dragleave:"onDragLeave"},prop:"drop"});return d(this,n.call(this,t))}return h(o,n),o.prototype.getOptions=function e(){},o.prototype.getFilters=function t(){},o.prototype.onDrop=function r(e){var t=this._getTransfer(e);if(t){var n=this.getOptions(),o=this.getFilters();this._preventAndStop(e),m(this.uploader._directives.over,this._removeOverClass,this),this.uploader.addToQueue(t.files,n,o)}},o.prototype.onDragOver=function i(e){var t=this._getTransfer(e);this._haveFiles(t.types)&&(t.dropEffect="copy",this._preventAndStop(e),m(this.uploader._directives.over,this._addOverClass,this))},o.prototype.onDragLeave=function s(e){e.currentTarget!==this.element[0]&&(this._preventAndStop(e),m(this.uploader._directives.over,this._removeOverClass,this))},o.prototype._getTransfer=function a(e){return e.dataTransfer?e.dataTransfer:e.originalEvent.dataTransfer},o.prototype._preventAndStop=function u(e){e.preventDefault(),e.stopPropagation()},o.prototype._haveFiles=function l(e){return!!e&&(e.indexOf?-1!==e.indexOf("Files"):!!e.contains&&e.contains("Files"))},o.prototype._addOverClass=function p(e){e.addOverClass()},o.prototype._removeOverClass=function c(e){e.removeOverClass()},o}(e)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=r;o(n(1));var i=angular,y=i.extend,m=i.forEach;r.$inject=["FileDirective"]},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function r(e){return function(n){function o(e){i(this,o);var t=u(e,{events:{$destroy:"destroy"},prop:"over",overClass:"nv-file-over"});return s(this,n.call(this,t))}return a(o,n),o.prototype.addOverClass=function e(){this.element.addClass(this.getOverClass())},o.prototype.removeOverClass=function t(){this.element.removeClass(this.getOverClass())},o.prototype.getOverClass=function r(){return this.overClass},o}(e)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=r;o(n(1));var u=angular.extend;r.$inject=["FileDirective"]},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function r(i,s,a){return{link:function u(e,t,n){var o=e.$eval(n.uploader);if(!(o instanceof s))throw new TypeError('"Uploader" must be an instance of FileUploader');var r=new a({uploader:o,element:t,scope:e});r.getOptions=i(n.options).bind(r,e),r.getFilters=function(){return n.filters}}}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=r;o(n(1));r.$inject=["$parse","FileUploader","FileSelect"]},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function r(i,s,a){return{link:function u(e,t,n){var o=e.$eval(n.uploader);if(!(o instanceof s))throw new TypeError('"Uploader" must be an instance of FileUploader');if(o.isHTML5){var r=new a({uploader:o,element:t});r.getOptions=i(n.options).bind(r,e),r.getFilters=function(){return n.filters}}}}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=r;o(n(1));r.$inject=["$parse","FileUploader","FileDrop"]},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function r(i,s){return{link:function a(e,t,n){var o=e.$eval(n.uploader);if(!(o instanceof i))throw new TypeError('"Uploader" must be an instance of FileUploader');var r=new s({uploader:o,element:t});r.getOverClass=function(){return n.overClass||r.overClass}}}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=r;o(n(1));r.$inject=["FileUploader","FileOver"]}])});

vbgamer45

That looks like Angular JS which I am not familiar with.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Stephan1979

Quote from: vbgamer45 on April 13, 2020, 11:48:37 AM
That looks like Angular JS which I am not familiar with.

Perhaps you know a different and easier script that meets my requirements? The point is that I can upload an html script with hxxp:schemo.org [nonactive] content and convert it to json and then display the content in an html document.

Stephan1979

Quote from: vbgamer45 on April 13, 2020, 11:48:37 AM
That looks like Angular JS which I am not familiar with.


I now know which error message is displayed. See below:

Cross-Origin Request Blocked: The Same Origin Policy does not allow reading the external resource at hxxp:err.freewebhostingarea.com/404.html [nonactive]. (Reason: CORS header "Access-Control-Allow-Origin" is missing).

Can I fix that?

vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Stephan1979

Quote from: vbgamer45 on April 14, 2020, 01:05:12 AM
Check hxxp:developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSMissingAllowOrigin [nonactive]

Thanks for the link.

I probably know what the problem is.

My site runs on the domain hxxp:www.xxxxx.freevar.com [nonactive] which is part of hxxp:www.freewebhostingarea.com [nonactive].

The script does not point to the correct domain or only works on a hxxp:www.xxxx.com [nonactive] server? The script must therefore refer to the rooth of the main domain.

Can this be correct what I say?


Advertisement: