Input de loading com JavaScript e CSS puro

Eu quero fazer uma animação com esse input, como se ele fosse carregando ao longo do tempo, mas eu não domino nem um pouco de animação CSS, e JavaScript estou aprendendo, tentei colocar ele em um laço for porém não está como esperado rsrs.

O problema que já tentei colocar o código no for, porém não sai o resultado esperado. O meu código seria, mas ele não carrega… E nem tem alguma animação com delay…

inputWhatsapp.style.width = loading 

Se puderem me dar uma ajuda tanto no código, quanto na legibilidade do código.

Segue o código a seguir.

https://jsfiddle.net/201hoknt/6/#&togetherjs=QmG1Rr9g24

Observação: Atualmente não estou usando nenhuma biblioteca ou framework externo.

Product page not loading after Magento 2.3.2 update

I have recently updated from Magento 2.3.0 to Magento 2.3.2 and everything seems to be ok, apart from the product page (and example is here: https://staging.propmasters.net/james-bond-octopussyrupee-bank-note )

It just loads with the gallery spinner showing and looking at the html there doesn’t appear to be anything loading in the

I’ve connected to the site via SSH and ran:

bin/magento cache:flush bin/magento setup:static-content:deploy bin/magento indexer:reindex

But it’s still showing the same. I can’t work out why it’s doing it

Loading resources on OnLoad function

I am trying to load a json file using the cc.loader.load function in onLoad() function as shown below, I also have used some console.log() functions to see the order of execution.

const {ccclass, property} = cc._decorator;  @ccclass export default class NewClass extends cc.Component {  // LIFE-CYCLE CALLBACKS:  objectFromResource: Object  onLoad () {     console.log("Starting onLoad() Function")     var url = cc.url.raw('resources/json_resource.json')     cc.loader.load(url, (err, res) => {         cc.log(res)         this.objectFromResource = res         console.log("Loaded URL")     });     console.log("Ending onLoad() Function") }  start () {     console.log('Starting start() Function')     console.log(this.objectFromResource) //logging as null     console.log('Ending start() function') }  update (dt) {  }  } 

The output is as following:

Cocos Creator v2.1.1 JSONReader.ts:16 Starting onLoad() Function JSONReader.ts:33 Ending onLoad() Function JSONReader.ts:37 Starting start() Function JSONReader.ts:38 undefined JSONReader.ts:39 Ending start() function JSONReader.ts:22 {__type__: "cc.JsonAsset", _name: "json_resource", _objFlags: 0, _native: "", json: Array(784)} JSONReader.ts:24 Loaded URL 

The resource is loaded after the onLoad() and start() functions are completed. How to load the resource on OnLoad() function before the start() method is called?

Why Would A Web Server Allow Loading XML External Entities?

I’ve been reading up on XXE Injection, and so far every example I’ve seen has involved a webserver voluntarily loading xml external entities (as below).

<?php  libxml_disable_entity_loader (false);  $  xmlfile = file_get_contents('php://input');  $  dom = new DOMDocument();  $  dom->loadXML($  xmlfile, LIBXML_NOENT | LIBXML_DTDLOAD);  $  creds = simplexml_import_dom($  dom);  $  user = $  creds->user;  $  pass = $  creds->pass;  echo "You have logged in as user $  user";?> 

Given the risk of XXE Injection attacks and the possibility for those attacks to a) disclose confidential information and/or b) perform remote code execution (RCE), why would a web server developer/admin decide to enable loading external xml entities in the first place?

So far I haven’t seen any explanation for what the motivation is to enable loading external xml entities. Is it just lazy coding? Ignorance? Convenience?

Web parts continuously loading

Our organization is running a Microsoft hosted SharePoint 2013 Cloud Service as our intranet. It was originally set up by a consultant, who built two “custom” web parts for the site. One is a calendar display and one is a quicklinks/search bar.

These two web parts will no longer load properly (just show a spinning wheel) on the main/home page. They do seem to work on other pages within the site.

No permission settings were changed, and these parts are embedded in the master site pages. Other browsers have been tried along with those outside of the organization (to eliminate any firewall issues).

Any suggestions for troubleshooting this issue?

*Disclaimer: I am not a SharePoint expert, please be kind

enter image description here

Error while loading Android Keystore

I am currently experiencing a problem with the use of Keystore on Android.

My current situation is as follows: I want to store certificates in a custom format in the Keystore. For that, I created a class that extends the Certificate class of Java :

   public class KCert extends Certificate 

Therefore, I can store and retrieve these new objects in the Keystore without problems when it is already initialized :

   KCert poCert = (KCert) ksm.getCertificate("POCERT"); 

or like this :

   Certificate poCert = ksm.getCertificate("POCERT"); 

(“ksm” stands for KeystoreManager, it’s just an interface I’ve developed to easily manipulate Keystore objects)

The difficulty appears when I try to load a Keystore file containing this type of certificate. The system throws :

    java.io.IOException: java.security.cert.CertificateException: KCert not found 

And so the Keystore can not be initialized.

My question is: is it possible to store certificates with a custom type in a Keystore file and load them when launching the application? If so, what should be implemented to make it work? (Since the Keystore seems to handle this type of certificate correctly when it is already initialized).

Thank you in advance !

Potential Solutions to loading Javascript classes unknown at run time

I’m looking for some advice or potential options for loading javascript files in real time long after the DOM has fully loaded. Those javascript files need to be sent over a WebSocket connection, and thus are unknown on page load.

Backstory: I’ve been working on a VR game for the past year and a half, and progress has been fantastic. I won’t waste time going into irrelevant details, but crucially the game is played by one person in VR, and up to 4 other people on their mobile devices.

Now, I’ve been going through and adding the possibility of mod support. So far this has gone surprisingly well, the Desktop VR game transmits relevant details about all the game-specific information when the mobile players connect, and we go from there.

Except I’ve hit a snag on one system: “Constructs” that the mobile players can place. Each one is so fundamentally different in use and operation that I’ve had to create separate classes on a case by case basis. But now with the potential for mod support… Those classes need to somehow be sent by the VR player over WebSocket.

My first naive approach was to use eval and function with a passed string containing javascript contents of an entire file sent from the VR user… Needless to say, that didn’t work very well.

Any thoughts at all here for this brick wall I’ve run into?

Loading google sheets data into localdb sql

I have a google spreadsheet with data that pertains to people that want to work for ice cream shops.

An UI is to be created that will be able to [read, write, delete] that data from the ui and sync the changes to the google spreadsheet. The reason for not using google spreadsheet is that there are easily 5k rows that will continue to increase.

With that, this main sheet does some calculations in google apps script that pushes and pulls data from about 10 other spreadsheets. The ability to access that data locally, in my opinion will improve the time it takes to do theses calculations as they are set on triggers and can take 10 minutes to refresh to the other sheets in all.

I am using asp.net/wpf for the ui and sql localdb to house the data grabbed from the google sheets api.

There is ssis but is complicated and as there is no updated guides for pulling google sheets into it.

Has anyone dealt with this before?

I am efficient in c#, javascript, node, python, c++. Junior in Java.

Finding area between curves -loading csv data

I have a bunch of Differential Pulse Voltammetry data I am trying to import into Mathematica, and find the area between each curve and the blank. So far I have used the following commands:

"Data1 = Import[   "/Users/chelseaswank/Desktop/untitled folder/HSJ-6-26-19-7-#2 - \ Sheet1 4.47.09 PM.csv", "Table"] Data2 = Import[   "//Users/chelseaswank/Desktop/untitled folder/HSJ-6-26-19-13-#2 - \ Sheet1 4.47.09 PM.csv", "Table"] Data3 = Import[   "/Users/chelseaswank/Desktop/HSJ-6-26-19/HSJ-6-26-19-19-#2 - \ Sheet1.csv", "Table"] Data4 = Import[   "/Users/chelseaswank/Desktop/untitled folder/HSJ-6-26-19-25-#2 - \ Sheet1 4.47.09 PM.csv", "Table"] Data5 = Import[   "/Users/chelseaswank/Desktop/untitled folder/HSJ-6-26-19-31-#2 - \ Sheet1 4.47.09 PM.csv", "Table"] Data6 = Import[   "/Users/chelseaswank/Desktop/untitled folder/HSJ-6-26-19-37-#2 - \ Sheet1 4.47.09 PM.csv", "Table"] Data7 = Import[   "/Users/chelseaswank/Desktop/untitled folder/HSJ-6-26-19-43-#2 - \ Sheet1 4.47.09 PM.csv", "Table"] Data8 = Import[   "/Users/chelseaswank/Desktop/untitled folder/HSJ-6-26-19-49-#2 - \ Sheet1 4.47.09 PM.csv", "Table"] Data9 = Import[   "/Users/chelseaswank/Desktop/untitled folder/HSJ-6-26-19-55-#2 - \ Sheet1 4.47.09 PM.csv", "Table"]"                 and                                                   "f1 = ListLinePlot[    Import["/Users/chelseaswank/Desktop/HSJ-6-26-19/HSJ-6-26-19-7-#2 - \ Sheet1.csv"]]; f2 = ListLinePlot[    Import["/Users/chelseaswank/Desktop/untitled \ folder/HSJ-6-26-19-13-#2 - Sheet1.csv"]]; Plot[{f1[x], f2[x], f1[x] - f2[x]}, {x, 0, 1.1},   Filling -> {{1 -> {2}}, 3 -> Axis}, PlotLegends -> "Expressions"]" 

and I get an axis and a green line. Please help.