redirect automatically using javascript php

How can I redirect automatically?

When a visitor comes to the site, I want to check for a mousemove, keypress, mouseclick, or scroll event, and if one is detected, redirect the user to $ activitly. If no event is detected, I would like to automatically redirect the user to $ inactivitly. The event listening time should be 15 seconds before the redirect occurs.

<?php $  activitly = ("http://www.activitly.com"); $  inactivitly = ("http://www.inactivitly.com");  ?>

I have also this code, but I don’t know how to edit it

<html> <head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>redirect</title>  <script language="JavaScript"> function set_interval() {   //the interval 'timer' is set as soon as the page loads     var timeoutMins = 1000 * 1 * 15; // 15 seconds   var timeout1Mins = 1000 * 1 * 13; // 13 seconds   itimer=setInterval("auto_logout()",timeoutMins);  }  function reset_interval() {   var timeoutMins = 1000 * 1 * 15; // 15 seconds    var timeout1Mins = 1000 * 1 * 13; // 13 seconds   //resets the timer. The timer is reset on each of the below events:   // 1. mousemove   2. mouseclick   3. key press 4. scrolling   //first step: clear the existing timer   clearInterval(itimer);   clearInterval(atimer);   //second step: implement the timer again   itimer=setInterval("auto_logout()",timeoutMins); }   function auto_logout() {   //this function will redirect the user to the logout script   window.open('self.location', '_self'); } </script>  </head> <body onLoad="set_interval(); document.form1.exp_dat.focus();" onKeyPress="reset_interval();" onmousemove="reset_interval();" onclick="reset_interval();" onscroll="reset_interval();"> </body> </html>

How to automatically expand contents on a JSON web page?

I use QuoDB to find useful examples from movie scripts. It seems like a JSON web page and I’m looking for a way to get the results expanded without having to click on every “context” button. Is there a way like entering a JavaScript code on the address bar or maybe finding out a URL parameter which can make those results expanded?

Automatically have named exports belong to default export?

If I have a module that looks like

export const a = 'hello' export const b = 'world' 

to import all of them I would need to use

import * as myModule from './my-module' myModule.a 

Is there a way for me to make the compiler set these exports up as part of the default export, without requiring me to re-export them

import myModule from './my-module' myModule.a 

Automatically have named exports belong to default export?

If I have a module that looks like

export const a = 'hello' export const b = 'world' 

to import all of them I would need to use

import * as myModule from './my-module' myModule.a 

Is there a way for me to make the compiler set these exports up as part of the default export, without requiring me to re-export them

import myModule from './my-module' myModule.a 

There’s no ntpd in centos 7, how to sync time automatically and manually with chrony?

Seems there’s no ntpd in centos7, how can I sync time in centos7?

I found out that chrony should be used in centos7, what is manual way to update time using chrony?

I assume chronyd is something equivalent to ntpd? and what’s the command equivalent to ntpdate -s time.nist.gov?

How do I get responses in Google Forms to automatically be updated when updating the spreadsheet?

I’m in a situation, where I have been given a source of information, with all sorts of people. And with that, I wish to insert all this inside of Google Forms, in the response section. And so I was wondering, if I could simply insert all this inside of the spreadsheet, for the response destination. Is this possible, and how could I do it?

How to automatically remove old packages with apt-get that are still downloadable?

My Ubuntu Trusty server is running the kernel “3.13.0-155-generic”. APT’s cache contains lots of old versions that I want to get rid of to preserve disk space.

# ls -1 /var/cache/apt/archives/linux-image-3.13.0-* /var/cache/apt/archives/linux-image-3.13.0-100-generic_3.13.0-100.147_amd64.deb /var/cache/apt/archives/linux-image-3.13.0-101-generic_3.13.0-101.148_amd64.deb /var/cache/apt/archives/linux-image-3.13.0-103-generic_3.13.0-103.150_amd64.deb /var/cache/apt/archives/linux-image-3.13.0-105-generic_3.13.0-105.152_amd64.deb /var/cache/apt/archives/linux-image-3.13.0-106-generic_3.13.0-106.153_amd64.deb ... 

I know that I could use “apt-get clean”, but I don’t want to delete everything, just the old versions. I have already setup “apt-get autoclean”, but this only deletes packages that aren’t available anymore, and those packages seem to be available, so they won’t get deleted.

Is there a simple way to automatically delete old version of packages that are still available in the repositories? (Don’t want to write/use a script here as APT should be able to do this. If it’s not, that would be the “solution”).

Google Chrome for macOS: How to bypass “This type of file may harm your computer” and save file automatically

Every time I download a .DMG file using Google Chrome, I have to open the Downloads tab and manually keep it which is super annoying. It shows This type of file may harm your computer message. Is there any way to always keep them?

Previously it can be configured in the settings but it seems there is no such setting in the latest version of Google Chrome.