Posts

css background-position - png images not displayed as positioned in css -

Background condition is not working for some reason I am trying to install several planetary systems filled with PNGs so that I can do some other coding, but the images are all standing on top of each other and some of them are cut into the div. CSS: body {background-image}: URL ('../ img / para2 / space_bg.jpg'); } # Planetary {background: url ('../img/para2/ planet_1.png'); Height: 200px; Width: 200px; Status: Completed; Margin: 0; Padding: 0; Display area; Background-position: 400px 400px; } # Planet 2 {background: url ('../ img / para2 / planet_2.png'); Height: 200px; Width: 200px; Status: Completed; Margin: 0; Padding: 0; Display area; Background-position: 800px 600px; } # Planet_3 {background: url ('../ img / para2 / planet_3.png'); Height: 200px; Width: 200px; Status: Completed; Margin: 0; Padding: 0; Display area; Background-position: 450px 700px; } # Planet_4 {background: url ('../ img / para2 / planet_4.png'); Height: 200px; Wi...

javascript - cannot find amount of days until next birthday for the user input -

The quantity of days will be given below the birthday of the persons, if the birthday has already happened, you will give it on the first day when your Had a birthday I'm still thinking the weather is possible to calculate the day till the next birthday, it will be required last December and will be calculated from January. I can not seem right about this. // Birthday and form form of month Birth Birthday Mouth = Doc. GateAllmentBiID ('Cellont'). value; Var birthday day = document. GetElementById ('selDay'). Values; // parsing birthday and month of birthday = persian (birthday month); Birthday = day = (date of birthdate); // setting date object today = new date (); // set today's date birthdays = new date (); // Set up Birthday Object Birthday. SetMonth (Month of Birthday); // Set Birthday Birthday December Birthday Birthday (birthdays); // set birthday date on 15th day (if today's birthday) // // It gets to the next birthday - diff = Math.abs (Birt...

java - Why does this code not return just "S" but instead the whole String MINUS the "S" -

I am new to APCS and I am practicing for my test. After analyzing this code with step-by-step analysis, I believe the answer is not listed below, but instead it is "S". However, my teacher says that the answer is "D" Can you explain this question to me? Looking at the following method: public static string WhatsUp (string str1, string strings 2) {int index = straw.andexoff (straw2); If (index! = -1) str1 = str1.substring (0, index) + str1.substring (index + str2.length ()); Return str1; } What is this line of code output? System.out.print (WhatsUp ("SpongeBobSquarePants", "S")); P> (E) Patrick index index = str1.indexOf (Str2); Index is set to 0 str1.substring (0, index) This returns nothing (Index is zero, ending point is exclusive (not included) public string object (int startIndex, int and index) a new String gives a substring of this string. The start of the object starts with the al...

ember.js - how to get the id of the object when using toggleProperty -

I would like to get the story object ID in the following templates so that I can comment but I am not sure how to do it. I would think that in the action there is a reference to that object which was called upon. I have: {{#each}} & lt; Div & gt; {{Date}} & lt; / Div & gt; {{#each stories}} & lt; Div {{action 'toggleproperty' comments displayed '}} & gt; {{Headline}} {{url}} {{id}} & lt; / Div & gt; {{/ Each}} Finally {{/ every}} & lt; Br / & gt; & Lt; Br / & gt; {{#if areCommentsDisplayed}} Comments {{id}} {{else}} are displayed with comments {{id}} {{/ if}} are not displayed Action ID is not the reason for writing. In the Commands Display Block below. How do I get a reference to write that ID? thx This is because id now Each is not in the area outside the block. You need to assign an id to a variable, then show it. For example, I will change your action on this: {{togglecomments' id}} Then im...

UIWebView can't load pdf files after adding missing constraints -

Image
My app works fine before adding obstacles to UIWebView. However, there is an error: DiskImageCache: The full path to the old directory could not be resolved. The app still works and shows the PDF file after adding some constraints, it will not show the PDF file (it appears empty), and the error code is still there . Here are some pictures: PIC 1: PIC 2: This is my code: {NSString * tutorialView = [ NSString stringWithFormat: @ "Chapter% i", Tutorial number]; NSDRAUL * PathTouch = [NSUF file URLTHTH Path: [[NSBindel Main Bundle] Pathfortsource: Tutorial ViewType: @ "PDF"]]; [_webView2 loadRequest: [NSRR request request with url: pathwive]]; } Is there a better way to view PDF files? I'm new to iOS programming. Sorry for the stupid question Try it with the following work The way is fine with me :) UIWebView * pdf = [[UIWebView alloc] initWithFrame: CGM (0,0, self.view.frame.size.width, self.view.frame .size.height)]; NSStr...

javascript - Static API Documentation with embedded API key -

I am setting up an API document for a project, and want to know what is the best tool for a job .. The site is completely stable Skip for API keys , which I would like to include in code examples based on user (if the user receives their own API key Is' logged in again). How can I get it while maintaining a static site (I'm using a static-site generator). I would recommend to include small AJAX scripts on all pages, which search through the page -and-replace On a static page, you will have a code like this: & lt ;! - Empty span in page template - & gt; & Lt; Span class = 'api-key' & gt; & Lt; / Span & gt; Everywhere you want to embed the API key The script will execute the simple task of search-and-replace (pseudocode is like this, assuming that jQuery is on your page): $ (document) .ready (function () {$ .get ("/ Api / key", function (data) {/ * if necessary, supply certificate * / $ ('.api-key') .html...

umbraco7 - How do I unhide a section in the Umbraco admin panel? -

and member sections are no longer visible in the admin section, the member and users are not visible. I'm logged in using the master / admin account. How do I look at these classes? I want to bring them back and show them in the Admin section. In your backoffice, click left to reach your user settings on the circle round the circle there You should be able to edit your profile settings by pressing the green "Edit" button. In your profile settings, there should be a group called "class" Verify that your "user" and "member" sections have a checkmark.