Wednesday, August 11, 2021
Friday, July 23, 2021
Brick inside another brick
Home:
![]() |
Thump-"👍" not turn to "🤩" when click that just animation. It was coincidence. |
Monday, July 19, 2021
Cool face style
<style>
.ehm:after{
content: "😎";
display: inline-block;
transform: rotate(0deg);
font-size: 1900%;
opacity: 1;
animation-name: ballroll;
animation-duration: 6s;
animation-delay: -2s;
animation-iteration-count: infinite;
}
@keyframes ballroll{
0%{ content: "🤩"; transform: rotate(0deg);}
25%{transform: rotate(3deg);}
60%{content: "😎";}
75%{transform: rotate(-3deg);}
100% {content: "👍";}
}
}
</style>
<div>
Try this style for size:
</div>
<p class="ehm" ></p>
Tuesday, June 8, 2021
All silly :D
Thursday, May 27, 2021
Filling full infinite hotel --ABABABBAAAA
Friday, May 21, 2021
Javascript how turn Ymd date to an another format
Say date as Ymd: 20010112 full int, how turn it to a form 12.1.2001, no loops.
%- Modulo our friend here
Wednesday, March 24, 2021
How to get AJAX ”get” to work on wp(WordPress) in vanilla js(javascript ) when there is namespace, when press button –jQuery (NO jQuery)
Huh! This take a lot a time, to figure out so many moving parts.
1. No "data" needed at all, but "action"
First I try figure out what jQuery does, but that was lot of scramble I got nothing. Finally then I figure to look inside admin-ajax.php itself if there is hint's how it works. And there I found what I been looking for.
...wp-admin/admin-ajax.php?action=testfirst
2.This kind of button and two div's for the AJAX on somewhere in WP Templates
<div id="demo"></div>
<div id="demo2"></div>
<button id="spesial_button" onclick="P_lifg()">I am spesial</button>
"P_lifg()" is function that has the ajax get.3.Next js script file
I name it OWnajaxjs.js
You know like in https://www.w3schools.com/js/js_ajax_intro.asp But few changes.But here now it OWnajaxjs.js file:
var urlToajax=jsajaxe_S.ajaxurl;
function P_lifg(){
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
document.getElementById("demo").innerHTML = this.responseText;
document.getElementById("demo2").innerHTML = urlToajax+ "?action=testfirst";
}
};
xmlhttp.open("GET", urlToajax+ "?action=testfirst", true);
xmlhttp.send(0);
}
//file end
That jsajaxe_S.ajaxurl is the actual location of admin-ajax.php this js file get it from php in wp_localize_script at the functions.php.
4.functions.php 1. Register, Localize and Enqueue script that is OWnajaxjs.js
function FunctionTF(){
exit( "Hola hola" );
}
Yes see, it "hola hola" is inside exit(), this take long time to figure out, there was conflicting information in web where to lay code here, but then I figure to again return to a admin-ajax.php file, and from there I get notice, that there are certain inbuild core ajax actions so I figure to go and check how one of them handle AJAXhandle I choose wp_ajax_rest_nonce() function and behold on 7. If you get everything right
Sunday, January 24, 2021
Thursday, December 17, 2020
Sceptre's great powers and, rise of Blastoids!!
Lay and RatRat be car travel, on dark forest at the night.
Then police
stop them, that in bike police uses a police motorcycle.
RatRat:
--“Only you
can see me.”
They be
going now to see Ed’s mom, RatRat says then: “Meteor from original world land
somewhere in here.” He points a map.
RatRat
read’s map and Lay driving thus they travel.
RatRat:
--“There is
Ed mother, you need meat her and... ”
Lay:
He driving
in the night
--“Ed’s
mom? Would she been die when the meteor landed. Gone with her hut. There just big crater?”
RatRat:
--“No no,
it hurtle like fifth dimensionally, so there lay her house and all perfect fine
condition, that to going sideways between and thru dimensions, it take out impact,
smooth the crash.”
So they
driving a car...
Then weak
mist, but it also ever increasing it density but slowly catch them, but it is great mist on always some
distance of them ever moving card, yes, but around car it is not that strong
that mist, It seem like there is some kind of mist rebelling bubble around the vehicle.
Then the motorcycle
police starts chase them. Wee* wee* make his police siren. They stop and,
Then the
police come to speak them and look some licenses, like leave his motorcycle and
take note book out, but he is like:
--“Eww What
the fuck is that!!” When lay opens a window to him, car window.
He meaning
RatRat in passenger seat, He shoots RatRat, no hesitations, like natural
reaction. Lay: --“You are not even human!?” This observation for that the Police make the
shot using his glowed finger bang* bang* only, instead that any gun or anything
he just shoot using a finger. Lay opens door suddenly so that it slams police
in the gutters, because he lose his balance after impact.
Then he re-starting
his car and speak loudly: “Have you any Idea, how long it take reinvoke my friend!”
Lay then
hit pedal to the metal. And accelerated out of the situation. Police sickly
hold his tummy and drag himself back in the bike.
RatRat is reviving,
the magic in him still fresh. There magic text orbiting around bullet holes and
they healing and he get back breathing just like when you are getting the sleep
but then suddenly feel like you can’t breathe and get little panic.
RatRat: --“He
shoots from finger? No human! No gun.”
Lay:--”He
was Blastoids..” They drive like thousand, not hold any restriction.
Lay:--” I
forgot”
RatRat:--”He
shoot form hand? You make so big deal, there is no magic! In your world.”
RatRat:--”Ouuh
ouuh There is no magic! ouuh” He make that mockery of Lay’s voice and be like
crying baby.
Lay: --“I
just forgot, those...”
Lay: --“They
are race that try replace all humanity, and they can shoot anything.”
RatRat: --“Forgetting
invading magical species how?”
Lay:--”I
just forgot, maybe they also hurl fifth dimensionally, you know time is also
dimension, they try Blow up you and then make the perfect copy of you, that
take your place.”
RatRat:
--“Are they aliens..”
Lay: --“no!
it is very long story.”
Police chasing
them, while they speak, it shot a missile, Lay make evasive manoeuvres and it
miss and explode front of them in the dark forest.
Lay look the
situation from rear-view mirror and he in big stress. But then it police combust
to a burning explosion to a fire storm.
Lay: --“
Good he forgot to a reassessment his counter.”
Lay: --“ those Bloody Blastoids we don’t care
about them, we go an another dimension.”
Lay:-- “Long
time ago there was a man or hero that could shot anything, he shot bullets to kill
enemies, he shot fire to burn up bunkers on bad war, he shot Ice to froze bank
robbers’s car, he shot water to save people from burning house. but he couldn’t
fly.”
RatRat:--”But repulsion
force?”
Lay:--”No!
No flying, it shooting anything ability itself clear on back hand all tricks to
reorientate it to flying. ”
Lay:-- “He
got two super powers shot anything, and not use first super power to flying.”
RatRat:--”What
if he shoot helicopter?”
Lay:--”No!
Other people could use it, but not the Sceptre it is like hologram to him.”
Lay:--” Sceptre
was name of that hero because he hold sceptre.”
Lay:--”HE
save, save and save.”
Lay: --“But
he could save no, one boy he fail, boys mama cry a lot, or did he faill? ”
Lay: --“Behold
he shot a boy and mama rejoice thus born the first Blastoid living breathing
projectile”
Lay:--”That
happen long time ago, later they the Blastoids begin to seem themselves as
superior to all other humans, because they never age and can shoot anything,
they feel it is favour to us to turn we human to them.”
Lay:--”They
look like we...
he look
smelly RatRat
me, but they have counter in them forehead,
they could shoot anything, but when counter hit zero, then it explode. Like the
police, earlier.”
RatRat: --“How
long is it time?”
Lay:-- “Five
minute, is maximum time, they need shoot copy of self, before counter hit zero.”
RatRat:--”5
minute.. that isn’t that bit short time, how they sleep ”
Lay:--”They
never sleep, they just shot new version of self, also they can shoot time freezing
blast, they shoot that on own forehead so it counter slow down.”
Lay:--”They
got many factions”
RatRat: --“You
know very, much about these Blastoids”
Lay:--”I
watch interesting document about them. ”
RatRat:[Turn
there we are near, and here we come off.]
Lay:--”Blastoids
you know like Androids...”
Lay:--”
That Sceptre! He could shoot nothing, he human, it was sceptre he holds it has the
ability, but when he got old he shot copy of himself, that was the second Blastoid
ever”
They go
land and park the car, mist get ever thicker. Lay need follow the RatRat thru thin path in
deep forest. Lucky big strong moon, so they can see little.
RatRat: --“What
if he flies very low on that helicopter. Almost like hovering”
Lay:--”Yes that
he can do.”
RatRat:--”Can
he then trick it “no fly”-rule, and start suddenly flying.”
Lay:--”No!
It just reverse time and return him on place before he start flying, and even
scoop out memory his brain ever trying that, Sceptre’s passive power of “no fly
his shooting anything power” is all powerful.”
RatRat:--”Can
he fly at all like normal helicopter or plane.”
Lay:--“Yes of
course, but if he shoot mesmerising hypno- shot on a pilot he can ask that
pilot to do anything he want, except give him free flights.”
Friday, December 11, 2020
Original universe got GaBoom!!!
The voice come now from Rat-totem first it was echoing many voices from everywhere but then it catcher up to one voice directly from the totem.
Totem:
--“You
great hero, from world long gone, the universe never was.”
--“You are
the chosen one to make the book.”
Totem
speaks mysteries, also others things, but mostly otherworldly ancient
mysteries.
There was a
night, but poodle name Fife that has pink bow and a fine trim, did not come out
it’s light blue doghouse. Every other night it been barked lot, but this night
it not even appear.
But then it
come out the doghouse and walk on crass and sniff a bone. Then she drink from titular
cup.
Then it start
to howl.
Lay be make
totem from an old beard hide, stitched it together to represent of a big rat
and fill it belly, by all those small critters he bee hunting, they are like
inner organs.
Its smell
rotting and sulphur because old dead things.
Lay:
--“Is this
body a good.”
RatRat:
--“I don’t
know, must test. This is the first time for me too.”
Then one
time he return to the Pray Room, and a house he got groceries, that, smelly
little thing has start living, it totem, it sniffing air, look very animal,
look untamed uncaring, when it speak it feel like dubbed, It talk following:
--“Slowly I
heal out this rotting smell.”
--“You a great Hero, Ed you are, you pick up the call,
the cosmic background wave white noise of reality, an ancient story from
countless ions ago whispers of the old galaxy.”
The little-thing
telltales of Ed the great heroes of original world... universe... reality.
World that
got destroyed in great war.
Lay:
--“Horrible
war.”
RatRat:
--“What?”
Lay:
--“War is
newer great.”
RatRat:
--“Yes...
anyway... let me continue...
...and this reality and all other the
dimensions and realitys be born ashes of that one first original universe and
dimension, and he speak everything that were beyond longest explanation.
But Ed was great hero, biggest of them all heroes
of all time, and he, he Lay is Ed he just need to make test and reborn as Ed.
RatRat:
--“ So basically
you need to do all that what Ed do in the first chapter.”
Lay:
--“First
chapter of what?”
RatRat:
--“In book
that you.. do.”
RatRat point
the big pile of notebooks filled it magic text, Lay have write.
RatRat:
--Wery
story that you do, but you cant read it it our text, kive me time and I
translate it for you.
And soon
little rat guy give him a tiny book, where it been explained how he become a
Ed. It is like prief summary of first chapter, RatRat need go thru mighty
plenty those notes to get anything coherent together.
Lay:
--“After I go
this thru, will I be free this curse?”
RatRat look
him like don’t understand what he talking, and be sorry same time.
Saturday, December 5, 2020
I don't know? Rat-totem? maybe that is a title: "Rat-totem"
“Son of
dream... Father of time I call you name!!”
“Son of dream father of time I call you name!!”
“Son of dream father of time I call
you name!!”
“Son of
dream father of time I call you name!!”
That way, goes
Lay’s mad scream to a Rat totem.
Very thin
he have turn, it been days, maybe weeks, sometime be past, he been neglecting
himself, life, family, opportunities. On
good and bad, Just focus on the magic, wearables weared out to loincloths so
long time he been crazy. Burned pots on skin, and bruises... --wonder how he
got them?
He live
rich that it seems, before the fall, on indoors nice baroque rugs and a carpet
the two-way- up staircase to an indoor balcony, it is just like in matrix
movie. But there is certain deterioration ongoing now mostly in his soul, but
also interior, but it is just symbolic what happens inside him. The obsession!
Walls and
floor and all books filled by that madding text... the magic oh. Dead campfire
spot middle of carpet dirty charcoals around the place. He went in a pen store.
Now even
long laid old text sometimes summons levitating magic symbol or two, not like on
the beginning when there were those just when it was fresh out off the
pen. So he is winning!!?!, figuring out
how the magic work.
The largest
concentration of levitating letters spiralling like small oddly dancing wind
around of big heap of notebooks, obviously because there is the most dense
gathering of the magic symbols on many layers, books have pages that lot of
surface to write, if wrote on walls that just one layer that smaller density.
I would
suggest; if he want the greatest amount the magic! He need write on really thin
paper, so then there can be very many layers of magic text, tight together it
like microchips they got smaller and smaller.
That same
cool way, is there rats? I mean same way as they letters come more prominent,
also he turn rat spirit worshipping maniac – I mean like slowly and
unwillingly. The cool way! Not even noticing it. All Signs of no choice, but a low
will power, maybe if he have resist more mentally, he wouldn’t go so crazy,
this newer be happened he would have job and a future.
Yes, same
ways the Rat come as the text come.
“I need a
good long sleep for my day job at tomorrow” He say, this was even before those
magic letters start happening three even before.
Noise from
outside:
-- “Rauh!* Rauh!*”(Dog bee barking.)
Lay:
-- “Oo!, the Dog from neighbour keep me awake! Hush
now!”
Another
noise, not dog:
-- “rattle*
rattle*”
Lay:
“And what
is that rustling, in walls? Where it coming from? I want sleep. No!.”
Then he
starts killing rats and squirrels tiny animals that he thing making nasty noise
at night, also look blood thirsty at the neighbour’s dog, but that odd
rattling, --the sinister feel, make him
more angry than the sparking ever. But little he know it dark scraping inviting
him slowly in whole new world also a whole new him.
Pesk like noises slowly get more clean they
turn “squeak-scratch”- like language, this while he writing more. And it noise
speak same:
-- “Wirite
wirite”
it was
quiet, but also more foreign and make no sense, but then it make more sense.
HE hear~~
-- “You must
make me real, I am you loyjal servant”
-- “awake me”
-- “I need a
new a body”
All those
rats he been killing, he have place them near the letter spiralling pile of notebooks,
he have small room formerly a cleaning closet whole turned a place of altar,
devoted to the spells.
the voice:
“I need a body about size of bagger.”
the voice:
--"invoke me
and I tell what you need to do, I tell more about the spells and you. Make me!
Bring me new body. I need fresh corpse about size of medium size dog or a
bagger. Bring me corpse of small animal and we talk more."
3D blog is ending
Later this month, 3D-blog will end. Thanks for all.
-
Javascript random is nice, because it is between 0 and 1; So you can like: Math.random()*sum where you get then numbers between 0 and the...
-
You got array of 6, It need to be fill dice-numbers all less that 6 more than one. We talk about 1,2,3,4,5,6. Minimal O is preferred. I...




















