Hong Kong protesters have welcomed an offer of talks by the territory's leader to defuse the ongoing crisis over demonstrations seeking democratic reforms.

However, demonstrators have continued to demand that the chief executive Leung Chun-ying should resign and maintained barricades around government headquarters, frustrating the efforts of staff who were going to work.

Student protesters had threatened to surround or occupy government buildings if Mr Leung did not step down by midnight, and police had warned of serious consequence for the protesters, who have grown into the biggest challenge to Beijing's authority since China took control of the former British colony in 1997.

The government said the central government offices would be temporarily closed after some civil servants and other workers arriving for their shifts following a two-day holiday were unable to get past the barricades. It advised workers to follow contingency plans.

It is unclear what kind of compromise the talks might achieve, though they might be part of a strategy to dampen the momentum of the protesters.

A front-page editorial in Friday's People's Daily newspaper, published by China's ruling Communist Party, underlined the leadership's unwillingness to negotiate changes to its decision that all candidates in an inaugural 2017 election for a new chief executive be approved for the ballot by a committee of mostly pro-Beijing elites.

Protesters want open nominations, and also have demanded that Mr Leung - chosen by such a committee - should step down.

"What we want to fight for is our freedom, and the free nomination of candidates for our chief executive," said Ivy Chan, a 25-year-old social worker.

She welcomed word of the talks and said she hoped that police would not again use tear gas on protesters as they did last Sunday to disperse huge crowds.

Just minutes before Thursday's midnight deadline set by protesters, Mr Leung held a news conference to offer the talks, but stated: "I will not resign."

Standing beside Mr Leung was the territory's top civil servant, chief secretary Carrie Lam, whom he asked to arrange the talks. She said she would seek to meet with leaders of the demonstrations as soon as possible.

"I hope both sides will be satisfied," she said. "Students had wanted a public meeting but I hope that we can have some flexibility to discuss details."

The Hong Kong Federation of Students said in a statement early on Friday that they planned to join the talks with the government, focused specifically on political reforms. They reiterated that Mr Leung should step down, saying he "had lost his integrity".

A wider pro-democracy group that had joined the demonstrations, Occupy Central, welcomed the talks but also continued to insist that Mr Leung should quit.

China's government has been largely silent on the protests, other than to call them illegal and support the Hong Kong government's efforts to disperse them. However, the People's Daily has published lengthy commentary on the protests.

On Friday, it said a small group of protesters were attempting "hijack" the system and force changes to the electoral rules to benefit a minority of people.

"The core of their efforts to gain so-called universal suffrage is to ensure that their representatives, including those who confront the central government, can become candidates for chief executive."

It said this effort was doomed to failure, and that there was "no room for concessions" on the candidate screening issue. It reminded that Hong Kong "is directly under the jurisdiction of the central government; it is not a country or an independent political entity".

When negotiating the handover of Hong Kong from Britain, China's ruling Communist leaders agreed to a "one country, two systems" that would preserve Western-style civil liberties and broad autonomy, while promising eventual democracy. Protesters say China is reneging on a promise that the city's top leader will be chosen through "universal suffrage".

Mr Leung said the authorities would continue to tolerate the protests as long as participants did not charge police lines, but urged them to stop their occupation of much of the central area.

"I urge students not to charge into or occupy government buildings. It's not about my personal inconvenience," he said. "These few days the protesters' occupation of key areas of the city has already seriously affected Hong Kong's economy, people's daily lives and government functioning."

Before Mr Leung spoke, the heads of two major universities whose students joined in launching the protests appeared before a jittery crowd in front of the entrance to his office and appealed for calm.

Earlier on Thursday, police were seen bringing in supplies of tear gas and other riot gear, and the protesters prepared face masks and goggles as tensions rose in the stand-off outside the imposing government compound near the waterfront.

After Mr Leung's news conference, however, the atmosphere was palpably calmer, although many protesters expressed disappointment about the proposed talks.

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.