( function ( window ) {
let DIS;
let R = 0;
const x1 = .1;
const y1 = .05;
const x2 = .25;
const y2 = .24;
const x3 = 1.6;
const y3 = .24;
const x4 = 300;
const y4 = 200;
const x5 = 300;
const y5 = 200;
const DI = document.getElementsByTagName( "img" );
const DIL = DI.length;
window.A = function () {
for ( i = 0; i < DIL; i++ ) {
DIS = DI[ i ].style;
DIS.position = 'absolute';
DIS[ 'z-index' ] = 9999999;
DIS.left = ( Math.sin( R * x1 + i * x2 + x3 ) * x4 + x5 ) + "px";
DIS.top = ( Math.cos( R * y1 + i * y2 + y3 ) * y4 + y5 ) + "px"
}
R++;
};
setInterval( () => window.A(), 50 );
} )( window );
Какие должны быть мои действия?
var path = require('path');
var express = require('express');
var app = express();
app.use(express.static(path.join(__dirname, './public'))); // если сайт лежит в папке public в корне проекта
app.listen(3000, function () {
console.log('Example app listening on port 3000!');
});
function insertAtCursor(myField, myValue)
{
if (document.selection) {myField.focus(); document.selection.createRange().text = myValue;}
else if (myField.selectionStart || myField.selectionStart == '0') {myField.value = myField.value.substring(0,myField.selectionStart) + myValue + myField.value.substring(myField.selectionEnd,myField.value.length);}
else {myField.value += myValue;}
}