Google Custom Search

C4Cat

Honorary Master
Joined
Nov 9, 2015
Messages
14,307
Doesn't it take a while for google to index a site?
 

[)roi(]

Executive Member
Joined
Apr 15, 2005
Messages
6,282
Doesn't it take a while for google to index a site?
That too; but it appears that there was another step to do; tried yesterday and nothing happened; today after starting again I ended up with the search console again (but this time I found more options), and a way to monitor if the crawling is complete; now to figure out what's wrong.
 

[)roi(]

Executive Member
Joined
Apr 15, 2005
Messages
6,282
I like that theme!!
Thanks me too; busy making some extensive changes to it though; by trying to make my life easier going forward; meaning lots of CSS, HTML, HTML DOM and JavaScript. Finally got the DOM sorted; less article boiler plate; and it now remembers your last language selection, and loads accordingly. Yet still not happy with the boiler plate around the language blocks; that's tonight's effort.
 
Last edited:

Thor

Honorary Master
Joined
Jun 5, 2014
Messages
44,236
[)roi(];18350870 said:
Thanks me too; busy making some extensive changes to it though; by trying to make my life easier going forward; meaning lots of CSS, HTML, HTML DOM and JavaScript.
I know css if you need help at any point.
 

[)roi(]

Executive Member
Joined
Apr 15, 2005
Messages
6,282
Ok two things came to mind:
  • Show/hide section i.e. to reveal solutions -- this article has an example: https://www.raywenderlich.com/76349/swift-ninja-part-1
  • <div> that I can left, right or centre align; with text wrapping; inside I plan to have images & a title (previous link also has a good example of this)

Design is flexible, and there's no expectation, only if you have a free moment (credit is guaranteed).
 

Thor

Honorary Master
Joined
Jun 5, 2014
Messages
44,236
On the road let me have a look tonight should not be a problem
 

Thor

Honorary Master
Joined
Jun 5, 2014
Messages
44,236
I will do something more integrated for you tomorrow, but this should suffice ie the idea:

HTML:
<input type="text" value="CLICK TO SHOW CONTENT">
<div id="content-box-one">
and the content will show.
</div>

CSS

HTML:
#content-box-one {
  display: none;
}
input[type="text"]{
    color: transparent;
    text-shadow: 0 0 0 #000;
    padding: 6px 12px;
    width: 150px;
    cursor: pointer;
}
input[type="text"]:focus{
    outline: none;
}
input:focus + div#content-box-one {
  display: block;
}
 

_kabal_

Executive Member
Joined
Oct 24, 2005
Messages
5,923
Generally using id's as CSS selectors is an anti pattern and should be avoided
 

Thor

Honorary Master
Joined
Jun 5, 2014
Messages
44,236
Generally using id's as CSS selectors is an anti pattern and should be avoided
Definitely, although I used the input, but I get what your saying. I'm on the phone as I won't make it home in time and did not want to leave the guy hanging after I said I'll help.
 

[)roi(]

Executive Member
Joined
Apr 15, 2005
Messages
6,282
Generally using id's as CSS selectors is an anti pattern and should be avoided
I've added quite a few anti-patterns (quick & dirty)... still too involved tail chasing for refactoring.

Definitely, although I used the input, but I get what your saying. I'm on the phone as I won't make it home in time and did not want to leave the guy hanging after I said I'll help.
Thanks Thor187; a few more things to do on the DOM, but will test tonight; thanks again.
 

[)roi(]

Executive Member
Joined
Apr 15, 2005
Messages
6,282
Ps. Google Custom Search problems have been resolved; was a combination of missing steps and overnight indexing.
 

[)roi(]

Executive Member
Joined
Apr 15, 2005
Messages
6,282
I will do something more integrated for you tomorrow, but this should suffice ie the idea:

HTML:
<input type="text" value="CLICK TO SHOW CONTENT">
<div id="content-box-one">
and the content will show.
</div>

CSS

HTML:
#content-box-one {
  display: none;
}
input[type="text"]{
    color: transparent;
    text-shadow: 0 0 0 #000;
    padding: 6px 12px;
    width: 150px;
    cursor: pointer;
}
input[type="text"]:focus{
    outline: none;
}
input:focus + div#content-box-one {
  display: block;
}

Thanks again; fits the need perfect; hopefully today I can find time to incorporate it. Thankfully I finished the DOM related Javascript; it works perfectly; so my free time today could be spent reworking articles, and hopefully publishing some new ones.

PS. you're welcome to publish an article on any topic if you like. Xennox has been a great help; code examples added for C++, Python and Javascript.

FYI I'm also planning to modify the site's Jekyll template to support categories and probably even topic tags e.g. Functional Programming, OOP, Web, etc... Plus article attribution should probably take a more central focus: re author.
 
Last edited:
Top