Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - achosierry

Pages: [1]
1
JavaScript Operators / Re: COMPARISON OPERATORS
« on: October 18, 2017, 05:39:34 am »
Just started using JQuery recently. (Fairly recently, I suppose...) What am I doing wrong here?

var userDate = new Date();
if(userDate.getHours() => 12)
{
    var post = $('p[title="test"]');
    post.text('Would you look at the time?');
}

2
JavaScript Operators / Re: BITWISE OPERATORS
« on: October 18, 2017, 05:30:55 am »
Hi guys,

So this exercise is fairly easy and I got it work, however i wanted to see if there was a way to dynamically build the mask to be equal in length to the original binary value instead of manually counting and creating a mask by hand.

Here's my code so far:

a = 0b11101110
b=str(bin(a))
c="1"

b = b.replace("0b", "")
print b
for n in range(1,len(b)):
    c +="1"
print c
c=int(c)
print type(c)
print c

So what's happening is that I'm able to build a string with the right number of 1s but then I can't find a way to take that string and convert it the binary form. Converting it an integer, as you can image, just creates an integer with a bunch of 1's in it.

Anyone have any suggestions?

3
JavaScript Operators / Re: LOGICAL OPERATORS
« on: October 18, 2017, 05:24:21 am »
I have below code which is not working.

var book_id = $('#indexBookSearch');
var tag_id  = $('#indexTagSearch');

if((book_id.val() == "") || (tag_id.val() == ""))
{
    $('#userMessages').html('<div class="alert alert-info">'+
        '<button type="button" class="close" data-dismiss="alert">&times;'+
        '</button>'+
        '<strong>Information ! </strong> Please select search criteria first.'+
    '</div>');
    return false;

4
JavaScript Operators / Re: ASSIGNMENT OPERATORS
« on: October 18, 2017, 05:22:10 am »
This issue has me confused. The first piece of code works fine without crashing, it assigns s1 to s2 perfectly fine. But the second group of code causes the program to crash.

Anyone have any idea on why this is happening or what the problem could be?

Code 1:(works)

    s1.add(10, 30, 25, "Test Screen", false);
s1.add(13, 10, 5, "Name:XXX", false);
s1.add(13, 18, 30);
s1.remove(-1);
Screen s2 = s1;

5
CSS Fonts, Icons, Links / Re: CSSFonts
« on: October 18, 2017, 05:15:56 am »
icon.css for default theme its trying to load ./assets/fonts/icons.woff2 but doesnt exist, also its not loading the otf font

6
CSS Fonts, Icons, Links / Re: CSS ICONS
« on: October 18, 2017, 05:13:26 am »
The fonts in the default theme are:

icons.eot
icons.otf
icons.svg
icons.ttf
icons.woff
icons.woff2
But in the basic theme they are:

icons.eot
icons.svg
icons.ttf
icons.woff
the dist its omitting the otf from the default theme

dist icon.css file

src: url("../themes/default/assets/fonts/icons.eot");
src: url("../themes/default/assets/fonts/icons.eot?#iefix") format('embedded-opentype'),
url("../themes/default/assets/fonts/icons.woff2") format('woff'),
url("../themes/default/assets/fonts/icons.woff") format('woff'),
url("../themes/default/assets/fonts/icons.ttf") format('truetype'),
url("../themes/default/assets/fonts/icons.svg#icons") format('svg');
But if you use icon alone as like in semantic-ui-icon it doesn't contains the woff2 and still doesnt load the otf file

ui-icon file:

src: url("assets/fonts/icons.eot");
src: url("assets/fonts/icons.eot?#iefix") format('embedded-opentype'),
url("assets/fonts/icons.woff2") format('woff'),
url("assets/fonts/icons.woff") format('woff'),
url("assets/fonts/icons.ttf") format('truetype'),
url("assets/fonts/icons.svg#icons") format('svg');

7
CSS Fonts, Icons, Links / Re: CSS LINKS
« on: October 18, 2017, 05:06:22 am »
I am using Sublime Text to make my own website and Code Academy to help me learn! But I do not know how to link the css and the html. I have done the lesson were you do that and successfully completed it, but I can not get it to work in Sublime Text. Any help would be greatly appreciated.

8
CSS Fonts, Icons, Links / Re: CSS ICONS
« on: October 18, 2017, 05:03:18 am »
hi!!! in css the are some codes for colors right like ex: AliceBlue    #F0F8FF is this codes also applicable in here??????
 

Pages: [1]